K
Kurt
I'd like to have an unbound text box on my main form
(frmMain) show the "Record X of Y" value for the
RecordCount in a subform (fsubForm).
Right now I'm getting a #Name error in the text box.
Here's what I have:
Current Event for the SubForm:
Private Sub Form_Current()
If Me.RecordsetClone.RecordCount > 0 Then
Me.RecordsetClone.MoveLast
End If
End Sub
Control Source of the unbound text box (which is on the
main form):
=Me!fsubForm.Form.CurrentRecord & " of " & Me!
fsubForm.Form!Recordset.RecordCount
I assume the problem is the Control Source syntax.
Thanks. Kurt
(frmMain) show the "Record X of Y" value for the
RecordCount in a subform (fsubForm).
Right now I'm getting a #Name error in the text box.
Here's what I have:
Current Event for the SubForm:
Private Sub Form_Current()
If Me.RecordsetClone.RecordCount > 0 Then
Me.RecordsetClone.MoveLast
End If
End Sub
Control Source of the unbound text box (which is on the
main form):
=Me!fsubForm.Form.CurrentRecord & " of " & Me!
fsubForm.Form!Recordset.RecordCount
I assume the problem is the Control Source syntax.
Thanks. Kurt