Counting records on a form after filter

N

NeoFax

I have a form that contatins 5 comboboxes that allow data mining of
the underlying query. This all works well using code. However, now I
need to be able to count the filtered records. I have tried using a
dcount, but this only counts all of the records and not only the
filtered ones. I was thinking of using recordset.clone to solve this
problem.
 
F

fredg

I have a form that contatins 5 comboboxes that allow data mining of
the underlying query. This all works well using code. However, now I
need to be able to count the filtered records. I have tried using a
dcount, but this only counts all of the records and not only the
filtered ones. I was thinking of using recordset.clone to solve this
problem.

This works for filtered and non-filtered form records.

="Record # " & [CurrentRecord] & " of " &
RecordsetClone].[RecordCount]
 

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

Top