alktrigger
Aimless Extraordinaire
- Local time
- Today, 01:36
- Joined
- Jun 9, 2009
- Messages
- 124
Access 2007
I've created a set of queries (nearly identical) to sum records dating back 9 weeks (1 qry/wk) which will eventually work it's way into a report.
each query is as follows, except for the date range changes
I am now trying to combine all the queries together by using another query. I've brought all 9 of my weekly queries into my output query, but no matter how I try to relate the queries or arrange them, I just keep getting blank results. How should I be combining the individual queries, or is it possible even to do this with a single query?
I've created a set of queries (nearly identical) to sum records dating back 9 weeks (1 qry/wk) which will eventually work it's way into a report.
each query is as follows, except for the date range changes
Code:
SELECT tblShippingList.Name,
Count(tblReceived.ID) AS CountOfID,
Sum(tblReceived.Received) AS SumOftblReceived
FROM tblShippingList INNER JOIN tblReceived ON tblShippingList.ID = tblReceived.Name
WHERE (((tblReceived.ReferenceDate)>([Forms]![frmReportLaunch].[txtStartDate]-14)
And (tblReceived.ReferenceDate)<=([Forms]![frmReportLaunch].[txtStartDate]-7)))
GROUP BY tblShippingList.Name;
I am now trying to combine all the queries together by using another query. I've brought all 9 of my weekly queries into my output query, but no matter how I try to relate the queries or arrange them, I just keep getting blank results. How should I be combining the individual queries, or is it possible even to do this with a single query?