SELECT TOP 10 Sum([Scrapped _Material]+[Scrapped _Labor]+[Scrapped _Burden]) AS Expr1, Scrap.[_Reason], Scrap.Transaction_Date INTO ScrapByTool
FROM Scrap
WHERE (((Scrap.[_Tool])=[Forms]![ScrapAnalysis]![cboTool]))
GROUP BY Scrap.[_Reason], Scrap.Transaction_Date
HAVING (((Scrap.Transaction_Date)>=Forms!ScrapAnalysis!startDate And (Scrap.Transaction_Date)<Forms!ScrapAnalysis!endDate+1))
ORDER BY Sum([Scrapped _Material]+[Scrapped _Labor]+[Scrapped _Burden]) DESC;
|