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!

Query count on a form?

Status
Not open for further replies.

sdavid74

Technical User
May 28, 2002
21
US
Is there a way that I can display the record count in a certain query on a main form page?

I have a main page that I use to navigate among query results, forms, and reports, and, from that form, I would like to display how many records are in each query.
 
A query doesn't have any records in it until you run it, so the number may vary. I suppose you could program a small button to do a DCOUNT of the query's recordsource on demand:

x = DCOUNT("Select ... from ... where... ") etc etc..

In other words, the only way to see how many records a query will return is to RUN that query - and then check the dynaset that results. A query itself doesn't hold data - it RETURNS data.

Jim How many of you believe in telekinesis? Raise my hand...
Another free Access forum:
More Access stuff at
 
thanks...that explains some strange results I've been getting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top