I have a Form, [frmMembers], with a subform, [frmMembers_Subform] which is based on a query.
The subform displays a number of records that are related to the record from the main form, in a datasheet view.
I want to place a control on the main form that displays the count of records returned in the subform.
I'm not sure how to proceed. I thought I could make a calculated control to count the number of instances of each foreign key from the query, but I only succeeded in returning the total number of records returned by the query (not the number of unique foreign keys).
Other than that, I have no idea where to go with it. My attempts to create a function to count the records from the main form have all failed miserably, with the #Name? error.
What do?