I'm trying to open a form and filter the subform called "frmUpdate_sub". The main form is called "frmUpdate_main". I have a button on another form and the code behind it is:
The above code opens the form but it doesn't filter the subform.
Code:
Dim frm As Form
Dim frm2 As Form
Set frm = Form_frmUpdate_sub
DoCmd.OpenForm "frmUpdate_Main"
DoEvents
frm.Filter = "[Issue_Tracking_Status] = 'submitted'"
frm.FilterOn = True
The above code opens the form but it doesn't filter the subform.