Displaying Total Amount Of Records In A Table

D

dmills

I would like to display the amount of records that are in a table on the form
- do I use a text box and assign the control source somehow...?

Thank you in advance
 
J

Jerry Whittle

You could use something like below in the control source on an unbound text
field in the form. I would work best if you put in the primary key field name
in FieldName.

DCount("[FieldName]", "TableName")
 
J

John W. Vinson

I would like to display the amount of records that are in a table on the form
- do I use a text box and assign the control source somehow...?

Thank you in advance

Try a textbox with a control source

=Count("*", "YourTableName")

This will count all the records in the table, irrespective of the recordsource
of the form, which might be a query or might be filtered.

If that's not what you want post back.
 

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