Hi all
I hope someone can help me with this. I'm trying to put a custom record counter on a subform, but the code I am using doesn't seem to work. This is what I am using (on the subform module):
I have a label with the name "Navlbl" and it is unbound. When I open the form, and use one of my custom navigation buttons, I get the error "Run time error 438. Object doesn't support this property or method".
Can anyone help? I'm pretty much a novice at code, so if you're able to give me some different code to help, then some comments about what it is doing would be appreciated!
TIA for any responses.
Helen
I hope someone can help me with this. I'm trying to put a custom record counter on a subform, but the code I am using doesn't seem to work. This is what I am using (on the subform module):
Code:
Private Sub Form_Current()
Me.RecordsetClone.MoveLast
Me.RecordsetClone.Bookmark = Me.Bookmark
Me!Navlbl.Caption = (Me.RecordsetClone.AbsolutePosition + 1) & " of " & Me.RecordsetClone.RecordCount
End Sub
I have a label with the name "Navlbl" and it is unbound. When I open the form, and use one of my custom navigation buttons, I get the error "Run time error 438. Object doesn't support this property or method".
Can anyone help? I'm pretty much a novice at code, so if you're able to give me some different code to help, then some comments about what it is doing would be appreciated!
TIA for any responses.
Helen