I have two sub forms on one modal form.
Form 1 = Edit_Frame_Frm - Modal form that displays the following two forms side by site. See attached pic.
Form 2 = Edit1_Frm
Form 3 = Edit2_Frm
The user will click a button on Edit1_Frm. The button will pick up the text field "DT_KEY_PIN" and filter the other form Edit2_FRM by the DT_KEY_PIN.
On click:
Dim stDTKEY As String
stDTKEY = Me.DT_KEY_PIN
Forms!Edit_Frame_FRM!Edit2_FRM.Form.FilterOn = False
The above reference between the two forms is correct because I can watch the code turn off the filter on the other form.
Forms!Edit_Frame_FRM!Edit2_FRM.Form.Filter = DT_KEY_PIN = stDTKEY
I've tried all sorts of combinations of syntax on the above line but I just cant get it correct. It should filter Edit2_FRM showing the 2 corresponding DT_KEY_PIN records.
Forms!Edit_Frame_FRM!Edit2_FRM.Form.FilterOn = True
Thanks
Fred