Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Access
Microsoft Access Queries
Select 2 dates on form and use query/report to sum cost between da
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Marshall Barton, post: 13497474"] I don't think I quite follow all the stuff in your query, but the one thing that jumps out as very strange is the conditions on the Sum(Cost). You are trying to compare the total cost to text strings, which makes no sense. I think you should remove those two criteria. It's also seems likely that you should get rid of the Min and Max of OptionPeriods.BeginDate. Try changing your HAVING clause: HAVING (((Min(OptionPeriods.BeginDate))>=[Forms]![Monthly Project Cost Report]![BeginDate]) AND ((Max(OptionPeriods.EndDate))<=[Forms]![Monthly Project Cost Report]![EndDate]) AND ((Sum(RepairInformation.COST))>="BeginDate" And (Sum(RepairInformation.COST))<="EndDate")) to: WHERE BeginDate>=Forms![Monthly Project Cost Report]!BeginDate AND EndDate<=Forms![Monthly Project Cost Report]!EndDate [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Access
Microsoft Access Queries
Select 2 dates on form and use query/report to sum cost between da
Top