Below is the code I have for a query. It shows me by Column:
Truck.....Category.....SystemGroup.....FaultTotals
My problem is if there is no FaultTotals nothing shows up. I would still like for the
Four Columns to show data and have a 0 in the FaultTotals.
How can I accomplish this?
Truck.....Category.....SystemGroup.....FaultTotals
My problem is if there is no FaultTotals nothing shows up. I would still like for the
Four Columns to show data and have a 0 in the FaultTotals.
How can I accomplish this?
Code:
SELECT "1-3" AS Truck, "Cosmetic" AS Category, WorkUnitsFaultsMainTBL.SystemGroup, Count(*) AS FaultTotals
FROM WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.FaultCategory)="Cosmetic") AND ((WorkUnitsFaultsMainTBL.TodaysDate)
Between [Forms]![Queries_ReportsFRM]![StartDateTxt] And [Forms]![Queries_ReportsFRM]![EndDateTxt]) AND ((WorkUnitsFaultsMainTBL.BuildID) In ("E010","C809","F001","C810","F187","A910","M173","M174")))
GROUP BY WorkUnitsFaultsMainTBL.SystemGroup
HAVING (((WorkUnitsFaultsMainTBL.SystemGroup)="CtWT"))
ORDER BY Count(*) DESC;