Subform Record Count

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I get the number of records on a subform?

I do not think that dcount will work, nor can I find record count.

Thanks.
 
Try:
=[Sub1].[Form].[RecordsetClone].[RecordCount]
replacing Sub1 with the name of your subform.

This expression should work in the ControlSource of a text box on the main
form.

(Note that RecordCount returns the number of records accessed so far, so it
may initially show 1 until it updates.)
 

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