Bill4tektips
Technical User
I have created a query in Access 2003 to count the number of times an article appears in a field. My problem is that I would like to show "0" if nothing is found and not a blank query. Any help would be appreciated.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT Count(tblOurFavs.TTer) AS CountOfTTer, tblOurFavs.FavColor
FROM tblOurFavs
GROUP BY tblOurFavs.FavColor
HAVING tblOurFavs.FavColor="Orange";
SELECT Count(tblOurFavs.TTer) AS CountOfTTer, tblColors.Color
FROM tblColors LEFT JOIN tblOurFavs ON tblColors.Color = tblOurFavs.FavColor
GROUP BY tblColors.Color
HAVING tblColors.Color="Orange";