Number of records in a query

  • Thread starter Thread starter Keren Kapach
  • Start date Start date
K

Keren Kapach

Hi,
How can I get the number of records in a query result?


Thanks,
Keren
 
Use the DCount() function.

DCount("*", "YourQueryName")

returns the number of "rows" returned by your Query.
Alternatively, you can change your Query to a Totals Query.

HTH
Van T. Dinh
MVP (Access)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top