I have a crosstab query and I noticed that 1 "Car" item was not being pulled in. I know that this item does not have any of the required items (i.e. the categories are null) but I still want it in the list. I put a left join in thinking that it would select all Cars from the table. I must be missing something easy here.
Thanks,
Stoss
Code:
TRANSFORM Count([Maint Trouble Calls].ID) AS CountOfID
SELECT [Maint Trouble Calls].Car, Count([Maint Trouble Calls].ID) AS [Total By Car]
FROM ([Maint Trouble Calls] LEFT JOIN CarData ON [Maint Trouble Calls].Car = CarData.Car) INNER JOIN Categories ON [Maint Trouble Calls].Category = Categories.Category
WHERE ((([Maint Trouble Calls].Category) Is Not Null) AND ((CarData.Active)=True) AND (([Maint Trouble Calls].Date) Between Date()-90 And Date()))
GROUP BY [Maint Trouble Calls].Car
ORDER BY [Maint Trouble Calls].Car
PIVOT [Maint Trouble Calls].Category;
Thanks,
Stoss