Thanks Dr.Evil, but not quite
Hi,
Thanks for the response.
Not quite. I'm trying to find the total amount of 'things', not the number of records.
Like my example stated:
(I changed the field headings)
Date Items
3/1/1999: 4
3/5/1999: 5
Date Items
12/1/2000: 4
12/4/2000: 5
What I would like to do is let the user choose a date range (Month and Year) and show them the total items by month.
So the results would be:
Date TotalItems
March 1999: 9
December 2000: 9
Thanks again Dr.Evil.
I have a query that works, pretty much.
Code:
SELECT DISTINCTROW Format([Tech].[ServiceDate],"mmmm") AS sMonth,
format([Tech].[ServiceDate],"yyyy") AS sYear,
Format(Sum([Tech].[ServiceTime]),"##.00") AS TotalTime INTO Temp1
FROM Tech WHERE [Tech].[ServiceDate] Between #1/1/2001# And #3/30/2001#
GROUP BY Format([Tech].[ServiceDate],"mmmm"),
format([Tech].[ServiceDate],"yyyy");
This creates a table called Temp1
Now, I have another table called ForwardedTime that has any time that could not be counted to the whole hour. I want to add this time to the TotalTime field in temp1.
I'm trying to do an UPDATE query, but I'm failing.
I'm willing to try whatever anyone has in mind.
Thanks,
JazzBass