Dear All,
I have a form that contains two subforms
SubformA contains LogonID, SubformB contains the same but with a different recordset
I would like that if I click on any records in SubformA, SubformB gets filtered to display records for UserID in SubformA
I have put this code to SubformA:
first just to test if filter works on subformB, but I get error message that it is an invalid reference
if I use this code
I get error message that object does not support this property/method
Could you please advise?
Many thanks in advance
I have a form that contains two subforms
SubformA contains LogonID, SubformB contains the same but with a different recordset
I would like that if I click on any records in SubformA, SubformB gets filtered to display records for UserID in SubformA
I have put this code to SubformA:
Code:
Private Sub Form_Current()
Forms!mainform!SubformB.Form.Filter = "participantid = '" & u565873 & "'"
End Sub
if I use this code
Code:
Private Sub Form_Current()
Forms!mainform!SubformB.Filter = "participantid = '" & u565873 & "'"
End Sub
Could you please advise?
Many thanks in advance