Sum Query

G

Guest

I need to find the sum for a user entered range of records.

I made a form to enter a startdate and enddate, Thanks Fred.

The query is filtering for School Related Overtime and for Paid Overtime vs
CompTime Overtime.

The query Sums the hours of overtime.

When I added the Date field, to filter by a range, the sum line is now
divided by each record that has a different date. This is what I am putting
in the critera line of the date field to filter:
Between [forms]![ParamForm]![StartDate] And [forms]![ParamForm]![EndDate]

Any ideas on how I can get the sum of hours to be all the records between a
set of dates?
 
J

John Spencer (MVP)

If you are using the query grid, change the "Group By" under the date field to
"Where". This will uncheck the Show item (but that is what you need to do).

Hope this helps.

IF you are still stuck, switch your query to SQL view and copy the SQL statement
and post it here. Someone should be able to modify it for you and then you can
paste it back into a copy of your query for testing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Nz function not showing all records 2
Using A form to input criteria 4
DateDiff calculation 3
week day calculation question 1
Update Query 2
Dates without weekends 1
Duplicate Field Names 6
Queries? 9

Top