Hi. I had code to display the number of records using the RecordCount
property in a label but have misplaced it.
The code example in Microsoft Visual Basic help was way more than I needed.
Can someone point me to an example?
Any help will be appreciated,
James
YourLabelName.Caption = "Record " & CurrentRecord & " Of " &
RecordsetClone.RecordCount & " Records"

Signature
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000
JamesJ - 31 Mar 2007 01:33 GMT
Works fine. Thanks
James
> YourLabelName.Caption = "Record " & CurrentRecord & " Of " &
> RecordsetClone.RecordCount & " Records"
> Hi. I had code to display the number of records using the RecordCount
> property in a label but have misplaced it.
[quoted text clipped - 3 lines]
> Any help will be appreciated,
> James
If you use an unbound Text control:
=[RecordsetClone].[RecordCount]
If you wish to display the count in a Label control, you'll need to
use VBA code.
Me!LabelName.Caption = Me.[RecordsetClone].[RecordCount]

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
JamesJ - 31 Mar 2007 01:35 GMT
In a label but can't get it to work.
Should the code be in the On Current of the form?
James
>> Hi. I had code to display the number of records using the RecordCount
>> property in a label but have misplaced it.
[quoted text clipped - 12 lines]
>
> Me!LabelName.Caption = Me.[RecordsetClone].[RecordCount]
fredg - 31 Mar 2007 16:32 GMT
> In a label but can't get it to work.
> Should the code be in the On Current of the form?
[quoted text clipped - 17 lines]
>>
>> Me!LabelName.Caption = Me.[RecordsetClone].[RecordCount]
Yes, the Current event should work fine.

Signature
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail