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!

form filter

Status
Not open for further replies.

sdavid74

Technical User
May 28, 2002
21
US
Is there any way to put a filter on a DCount function so that it will only count records that meet certain criteria?

My goal is to count the number of records marked "true" that are contained in "MyTable" and record that number on "MyForm"

Any ideas?
 
Certainly
Dcount("fieldname","[tablename]", "fieldname = true")

dcount() uses the arguments

DCount(expr, domain[, criteria])
 
Thanks, I appreciate you taking the time to help with such an simple problem. That did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top