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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCount Checkbox

Status
Not open for further replies.

Garridon

Programmer
Mar 2, 2000
718
US
I am trying to use DCount to count the number of records checked in a checkbox field. This is what I've been using:

DCount("boolFieldName","tblName","boolFieldName=True")

I also tried Yes, instead of true, but both show that there are zero records. What am I doing wrong?

Thanks!

Linda Adams
Visit my web site for writing and Microsoft Word tips:
 
DCount("boolFieldName","tblName","boolFieldName=-1")
DCount("boolFieldName","tblName","boolFieldName=true")
DCount("boolFieldName","tblName","boolFieldName=yes")
all work

are you replacing the field name and the tbl name with your field and table names????


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top