I have a form with a subform in it. The form contains companies and the sobform contains contacts at each company. I would like to get a count of only the total records in the current subform, not the entire table. I would prefer to use ADO instead of DAO if it is necessary.
I've tried
Dim rst As ADODB.RecordSet
Set rst = Me.sfrmContacts.Form.RecordsetClone
Me.text01 = rst.RecordCount
But I always get an error at the "set rst" line.
Any help would be appreciated.
-Al
I've tried
Dim rst As ADODB.RecordSet
Set rst = Me.sfrmContacts.Form.RecordsetClone
Me.text01 = rst.RecordCount
But I always get an error at the "set rst" line.
Any help would be appreciated.
-Al