msquery
10-13-2005, 09:57 AM
Please Help. I am tring to get the Month to date, year to date and week to date total in a query. I added a parameter for a date range. Instead of giving me the mtd, wtd, ytd, I get the whole months daily total. Can someone tell me what query caculation do I need to just get one number instead of daily numbers?
ScottGem
10-13-2005, 11:33 AM
You might look at a crosstab query for this. What you need to do is use the Datepart function to extract the Year, month and week from the date field. Then uses those values to group your records.
Pat Hartman
10-13-2005, 08:38 PM
Please don't start new threads on the same topic.
http://www.access-programmers.co.uk/forums/showthread.php?p=429613#post429613