record count on forms

J

judith

Is there any way to set up your own count fields on a
form. The number of records in the display set I can
manage but I would like to display (2 of 5) rather than
just (5)

Thanks
 
B

Bas Cost Budde

Experiment with this:

Private Sub Form_Current()
ctlRecordno = Me.SelTop
End Sub

ctlRecordno is an unbound control (text field in my test) in the form
header.
 
S

StCyrM

Hi Judith

In a textbox, simply enter the following:

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

Maurice
 
B

Bas Cost Budde

StCyrM said:
Hi Judith

In a textbox, simply enter the following:

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

Hey, didn't know that property. Interesting, thanks. (Funny that my
higher level of codeing experience often hides simpler solutions from me)
 
J

Judith

Terrific, thanks...
-----Original Message-----
Hi Judith

In a textbox, simply enter the following:

=[CurrentRecord] & " of " & [RecordsetClone]. [RecordCount]
Maurice

Is there any way to set up your own count fields on a
form. The number of records in the display set I can
manage but I would like to display (2 of 5) rather than
just (5)


.
 

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