Hey All!
I have a form with a subform. The subform consists of a datasheet. I’m trying to count the number of records in the datasheet and display it on the main form.
On Form Load (either form will work), I can use this code:
Forms!frmApplications.frmTrack.Form.RecordsetClone.MoveLast
Me.lblRecordCount.Caption = “Count: ” & Forms!frmApplications.frmTrack.Form.RecordsetClone.RecordCount
But if the user applies a filter by form or other such to the datasheet, how do I get the recordcount?
I can’t seem to figure out if my problem is not knowing which event triggers the change in the recordset of the datasheet (I’ve tried so many!), or whether the problem is that the recordsetclone is not acted upon by the apply filter as it would be if I applied the filter in code.
Can someone help me out? I’ve been away from this for a *really* long time and I’m kinda rusty.
TIA!
Cecilia