If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Displaying Total Amount Of Records In A Table
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 |
#2
|
|||
|
|||
Displaying Total Amount Of Records In A Table
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") -- Jerry Whittle, Microsoft Access MVP Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder. "dmills" wrote: 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 |
#3
|
|||
|
|||
Displaying Total Amount Of Records In A Table
On Wed, 17 Mar 2010 08:34:05 -0700, dmills
wrote: 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. -- John W. Vinson [MVP] |
Thread Tools | |
Display Modes | |
|
|