Well I'm a little bit stumped on this one as the query that I built to perform this task isn't getting the proper date. Basically I'm looking to receive the number of orders processed on a weekly basis and only for the past month. So I constructed a pair of queries to accomplish this.
This query is supposed to get the data for the past 30 days (I also only want it for the current year)
SELECT ReportData.AD_DATE, *
FROM ReportData
WHERE (((ReportData.AD_DATE) Between Date() And Date()-30) AND ((Year([AD_DATE]))<>2007));
This query is supposed to give a weekly count for the orders processed but it's doing it for a longer time period, probably due to query one:
SELECT Format([AD_DATE],"w") AS Week, Count([Get Current Info].Widget_Serial_Number) AS CountOfWidget_Serial_Number
FROM [Get Current Info]
GROUP BY Format([AD_DATE],"w"), [Get Current Info].AD_DATE
So how do I get a query (or queries) to get the data that I want?
This query is supposed to get the data for the past 30 days (I also only want it for the current year)
SELECT ReportData.AD_DATE, *
FROM ReportData
WHERE (((ReportData.AD_DATE) Between Date() And Date()-30) AND ((Year([AD_DATE]))<>2007));
This query is supposed to give a weekly count for the orders processed but it's doing it for a longer time period, probably due to query one:
SELECT Format([AD_DATE],"w") AS Week, Count([Get Current Info].Widget_Serial_Number) AS CountOfWidget_Serial_Number
FROM [Get Current Info]
GROUP BY Format([AD_DATE],"w"), [Get Current Info].AD_DATE
So how do I get a query (or queries) to get the data that I want?