P
Paul James
I'm trying to set the filter property of a subform from a command button
click event in the main form, but I'm having trouble specifying that I want
the filter to be applied to the subform.
Let's say my form is named "frmMain," my subform is named "frmMainSub" and
my subform control is named "ctlMainSub." I've tried different combinations
like
Forms!frmMain!frmMainSub
Forms!frmMain!ctlMainSub!frmMainSub
Forms!frmMain!ctlMainSub.forms!frmMainSub and
Forms!frmMain.forms!frmMainSub,
but nothing has worked so far. Can anyone tell me how to refer to the
subform in the click event of a command button in the main form?
Thanks in advance.
Paul
click event in the main form, but I'm having trouble specifying that I want
the filter to be applied to the subform.
Let's say my form is named "frmMain," my subform is named "frmMainSub" and
my subform control is named "ctlMainSub." I've tried different combinations
like
Forms!frmMain!frmMainSub
Forms!frmMain!ctlMainSub!frmMainSub
Forms!frmMain!ctlMainSub.forms!frmMainSub and
Forms!frmMain.forms!frmMainSub,
but nothing has worked so far. Can anyone tell me how to refer to the
subform in the click event of a command button in the main form?
Thanks in advance.
Paul