Query COunt

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I am trying to do a count what count to see how many brochures have
not been sent with the following query


SELECT tblBrochure.BrochureSent, Count(tblBrochure.BrochureRequestID)
AS CountOfBrochureRequestID
FROM tblBrochure
GROUP BY tblBrochure.BrochureSent
HAVING (((tblBrochure.BrochureSent)=False));




If all the brochures have been sent then the query dispalys nothing,
how do i get it to dispay 0

Thanks
 
I am trying to do a count what count to see how many brochures have
not been sent with the following query

Use WHERE rather than HAVING:

SELECT Count(*)
AS CountOfBrochureRequestID
FROM tblBrochure
WHERE (((tblBrochure.BrochureSent)=False));


John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top