Record Count

R

Roger

Is there a simple way of displaying a table's total
record count in a text box like is done with the default
navigation buttons display?

Thanks
 
T

tina

try the following, as

Private Sub Form_Load()

Me.RecordsetClone.MoveLast
Me!txtMyTextbox = Me.RecordsetClone.RecordCount

End Sub

you can also use a label control instead of a textbox, as

Me!lblMyLabel.Caption = Me.RecordsetClone.RecordCount

hth
 
P

PC Datasheet

Another way:
Put the following expression in the control source property of an unbound
textbox:
=DCount("*","NameOfTable")
 

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