Hi!
I have reviewed the many other threads on RecordCount and have no reason to think my code should not work, however, it returns the incorrect answer.
ctrlPatientBrowser is a subform - datasheet
The answer I get is 501
Clicking on the vertical scroll bar shows "Record: 1 of 1134"
which is correct.
I am obviously missing something basic and would appreciate some help.
Thanking you
Peter
I have reviewed the many other threads on RecordCount and have no reason to think my code should not work, however, it returns the incorrect answer.
Code:
Private Sub Form_Load()
MsgBox(Str(Me.[ctrlPatientBrowser].Form.Recordset.RecordCount))
End Sub
The answer I get is 501
Clicking on the vertical scroll bar shows "Record: 1 of 1134"
which is correct.
I am obviously missing something basic and would appreciate some help.
Thanking you
Peter