I have a table that has fields 'RefNumber', 'LogDate' and 'FinishDate' (amongest others of course). I can easily query the table to count the number of orders per month and also to count the number of completed per month, but I cannot combine these into a single query. Is it possible?
The individual queries are as follows..
SELECT DatePart("m",[logdate]) AS Month, Count([GCSR Register].RefNumber) AS Orders FROM [GCSR Register]
GROUP BY DatePart("m",[logdate])
HAVING (((DatePart("m",[logdate]))>0));
SELECT DatePart("m",[finishdate]) AS Month, Count(qryGCSR_Report_Query.RefNumber) AS Completed
FROM qryGCSR_Report_Query
GROUP BY DatePart("m",[finishdate])
HAVING (((DatePart("m",[finishdate]))>0));
Thanks
Georg
The individual queries are as follows..
SELECT DatePart("m",[logdate]) AS Month, Count([GCSR Register].RefNumber) AS Orders FROM [GCSR Register]
GROUP BY DatePart("m",[logdate])
HAVING (((DatePart("m",[logdate]))>0));
SELECT DatePart("m",[finishdate]) AS Month, Count(qryGCSR_Report_Query.RefNumber) AS Completed
FROM qryGCSR_Report_Query
GROUP BY DatePart("m",[finishdate])
HAVING (((DatePart("m",[finishdate]))>0));
Thanks
Georg