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

another count question

Status
Not open for further replies.

bjarvis

Technical User
Jan 15, 2001
38
US
here's what I have in my text box
=count([statusid]where[statusid]=1)
after I enter this it gives me an invalid syntax message. What am I doing wrong.
 
You can't use criteria with anything other than aggregate functions(i.e. DCount()). So, either filter the recordset so that only those records matching your criteria are returned or use the DCount() function. Keep in mind, aggregate functions require that you pass the field AND domain(i.e. table or query) to the function. Passing the criteria to a domain aggregate function is optional.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top