B
Brent via AccessMonster.com
Hello, I have a query that will not display all locations from one table
and matched counts from another (with nulls if none). I searched through
the forum for similar answers, but none seem to work.
Any help is appreciated.
(I am running Access 2003)
SELECT Locations.Location, Count(Inspection.Location) AS Inspections
FROM Locations LEFT JOIN Inspection ON Locations.Location =
Inspection.Location
WHERE (((Inspection.Date) Between [start date] And [end date])) OR ((
(Inspection.Date) Is Null))
GROUP BY Locations.Location
ORDER BY Locations.Location;
and matched counts from another (with nulls if none). I searched through
the forum for similar answers, but none seem to work.
Any help is appreciated.
(I am running Access 2003)
SELECT Locations.Location, Count(Inspection.Location) AS Inspections
FROM Locations LEFT JOIN Inspection ON Locations.Location =
Inspection.Location
WHERE (((Inspection.Date) Between [start date] And [end date])) OR ((
(Inspection.Date) Is Null))
GROUP BY Locations.Location
ORDER BY Locations.Location;