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!

Counting using 'build expression'

Status
Not open for further replies.

01491

ISP
Oct 30, 2001
17
0
0
GB
I'm trying to use a textbox on a form that brings the number of records held in an unopened query.
The expression =count([QryName]) does not work.

Can anyone help me?

Thanks
 
Well you could use the DCount Function. You would have to select a field in the query that didn't have nulls, like the Primary Key, and then use this as the ControlSource for the textbox on your form:
=DCount("[FieldNameHere]","[QueryNameHere])
That should do it.
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top