For example.
Parent Form - Groups: ID, GroupName
Subform - Members: MemID, GrpID, Name, Age
Forms linked with Groups.ID = Members.GrpID
Parent Form has Button - btn80 - "80 Year Olds"
Expand|Select|Wrap|Line Numbers
- Private Sub btn80()
- ' Create filtered recordset in subform
- Me.subfrmMembers.Form.Filter = "Members.Age = 80"
- Me.subfrmMembers.Form.FilterOn = True
'Any Way to Progressively Filter Out Records In Form's Recordset?
'Possibly:
Until Me.subfrmMembers.Form.RecordsetClone.EOF
... ' Somehow add to Me.Filter with an operation on the filtered recordset each time? I noticed if you just set the filter each time it drops the previous filter
Is there a way within the form to redefine related recordsets based on a filter?
I think I have done this before by setting up a query as the data source for the form with criteria in the query pointing to the value of a control on the form, but I was wondering if I could get around that and do it all in the form.