Count of records that have been filtered in a query

singingshiver

Registered User.
Local time
Today, 10:03
Joined
Jul 23, 2002
Messages
51
I have created a query based on my form to show only my records that are in a "monitoring" state. How can I get a total displayed for the number of records it shows? I have a form based on this query and ultimately I want the total displayed in a report I have already created.

Any help would be appreciated.
 
I think a simple way of doing this would be to add a TEXTBOX control on your form or report and setting the Control Source property to "=Count(*)".

This should count all the records in the active recordset and return the result to your TEXTBOX control.

Cheers,
 
Last edited:
Didn't work

Thanks for the reply.

I tried what you suggested but it didnt work: "=Count(*)".

Any other suggestions?
 
That's correct. See the attachment for a sample.

Cheers,
 

Attachments

  • sample.jpg
    sample.jpg
    22.8 KB · Views: 158
WORKS

IT WORKS!!!

I re-created the query and form and now it works. Thanks very much everyone.
 

Users who are viewing this thread

Back
Top Bottom