Hello,
I know similar threads are out there but I was not able to solve my problem through them.
I have a simple query which is counting the number of results in a search.
I need it to display 0 when there are zero results instead of returning empty.
How can I accomplish this?
My SQL is:
Code:
SELECT Count(tblDataPrime.recordID) AS CountOfrecordIDFROM tblDataPrime
WHERE ((([toolNextCalDate]<Date())=-1) AND ((tblDataPrime.toolActive)=-1))
GROUP BY tblDataPrime.toolLocat
HAVING (((tblDataPrime.toolLocat)<>"Scrap"));
I also tried:
Code:
SELECT NZ(Count(tblDataPrime.recordID),0) AS CountOfrecordIDFROM tblDataPrime
WHERE ((([toolNextCalDate]<Date())=-1) AND ((tblDataPrime.toolActive)=-1))
GROUP BY tblDataPrime.toolLocat
HAVING (((tblDataPrime.toolLocat)<>"Scrap"));
But this did not work either.
Thank you for your assistance.