Hello.
I have a form (Frm1) with a subform (Subfrm1). Both Frm1 and Subfrm1 have tabs. When I select a tab in the subform, I would like to write VBA code to select a specific tab on the main form.
So, In Frm1, I have TabCtl10 with Page11 and Page12.
In Subfrm1, I have TabCtl20 with Page21 and Page22.
If I select Page21 in the subform, I would automatically like Page 11 in the main form to appear.
I have tried the following as an "on click" event when selecting Page21, and it doesn't work:
Forms("Frm1")!Controls(TabCtl10)!Pages(Page11).SetFocus
Thanks in advance.
I have a form (Frm1) with a subform (Subfrm1). Both Frm1 and Subfrm1 have tabs. When I select a tab in the subform, I would like to write VBA code to select a specific tab on the main form.
So, In Frm1, I have TabCtl10 with Page11 and Page12.
In Subfrm1, I have TabCtl20 with Page21 and Page22.
If I select Page21 in the subform, I would automatically like Page 11 in the main form to appear.
I have tried the following as an "on click" event when selecting Page21, and it doesn't work:
Forms("Frm1")!Controls(TabCtl10)!Pages(Page11).SetFocus
Thanks in advance.