Sorry, I mixed them.. but it is the same idea...
main query: "qryProdCategory"
Code:
SELECT tblReportProduct.ProdCategoryFROM tblReport INNER JOIN tblReportProduct ON tblReport.ReportID = tblReportProduct.ReportID
GROUP BY tblReportProduct.ProdCategory, tblReport.ActionDate, tblReportProduct.ReportID
HAVING (((tblReport.ActionDate) Between [Date1] And [Date2]));
subquery: "qryProdTotalCategory" --- which gives me what I need..
Code:
SELECT qryProdCategory.ProdCategory, Count(qryProdCategory.ProdCategory) AS CountOfProdCategoryFROM qryProdCategory
GROUP BY qryProdCategory.ProdCategory;
but how can I create one query...???