S
Sophie
This has me confused. I use the following code in several of my forms, in
the Form Current event. It gives me a label showing, for example, Record 31
of 286. It works well except on one of my forms where it always shows Record
1 of 6, regardless of how many records there are. I'm not sure where it is
getting the 6??? . I can fix this by clicking in the detail section of the
form, but only if I click in the 2nd record or higher. Clicking in the first
record has no effect on the counter. What's the easy fix?
Private Sub Form_Current()
With Me.RecordsetClone
.Bookmark = Me.Bookmark
Me!lblRecordPofQ.Caption = "Record " & .AbsolutePosition + 1
& " of " & .RecordCount
End With
End Sub
the Form Current event. It gives me a label showing, for example, Record 31
of 286. It works well except on one of my forms where it always shows Record
1 of 6, regardless of how many records there are. I'm not sure where it is
getting the 6??? . I can fix this by clicking in the detail section of the
form, but only if I click in the 2nd record or higher. Clicking in the first
record has no effect on the counter. What's the easy fix?
Private Sub Form_Current()
With Me.RecordsetClone
.Bookmark = Me.Bookmark
Me!lblRecordPofQ.Caption = "Record " & .AbsolutePosition + 1
& " of " & .RecordCount
End With
End Sub