Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

counting problem???

Status
Not open for further replies.

PQTIII

IS-IT--Management
Sep 21, 2004
110
How do I count all records that have a zero value for a particular field?

Thanks
pt
 
Try "DCount() Function". Have a search in the VBA help file.

________________________________________________________
Zameer Abdulla
Help to find Missing people
Education's purpose is to replace an empty mind with an open one.
~Malcolm S. Forbes~
 
Or, if using a query:
Code:
SELECT Count(*) AS TotalOfZeros
FROM TableNameHere
WHERE FieldNameHere=0;
Don't forget to consider how to treat nulls.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top