I currently have a totals query (see code below) that shows me total based on a range of dates. The results look like this.
System Group Mechanical Totals
Battery Box 5
Brake Cable 6
Cowl 8
What I would like to be able to do with a query is to show a trend for each system group over time:
Let's say Week one Battery Box = 5
Week Two Battery Box = 3
Week Three Battery Box =1 etc etc. This would show the trend of Mechanical Totals (errors) over time for each System Group. This could be also by month or week. Any suggestions on how to accomplish with a Query?
System Group Mechanical Totals
Battery Box 5
Brake Cable 6
Cowl 8
What I would like to be able to do with a query is to show a trend for each system group over time:
Let's say Week one Battery Box = 5
Week Two Battery Box = 3
Week Three Battery Box =1 etc etc. This would show the trend of Mechanical Totals (errors) over time for each System Group. This could be also by month or week. Any suggestions on how to accomplish with a Query?
Code:
SELECT SystemGroup, Count(*) AS [Mechanical Totals]
FROM WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.FaultCategory)<>"No Faults") And (WorkUnitsFaultsMainTBL.FaultCategory)<>"Cosmetic") And ([TodaysDate] Between Forms!WorkUnitsFaultsMainFRM!StartDateTxt And Forms!WorkUnitsFaultsMainFRM!EndDateTxt)
GROUP BY SystemGroup;