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

Dcount function

Status
Not open for further replies.

oggsta

Technical User
Jun 22, 2002
41
0
0
GB
I would like to count all those feilds
on form/table main that equals South East AND
Form/table Sheet1 that equals '4. PLANNING APPLICATION SUBMITTED,

For some reason the formula below is unsuccusful, i think it has something to do with this line, Forms!Sheet1![Sitestatus]. It works fine with the one table or form but when you introduce a second it does not seem to work.

=DCount("[MainID]","Main", "[Region] = 'South East' AND Forms!Sheet1![Sitestatus] = '4. PLANNING APPLICATION SUBMITTED'")

Any help appreciated;
 
If I'm correct as to what you're trying to do, what you need to do is create a query containing all of the fields on main that equal "South East", and all records on Sheet1 that equal "4. Planning Application". Use the DCount function on that query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top