i have a form with 2 tabs and a sub form on each of those tabs.
form1, subformA, subformB on tab control - tabctrl - pageA, pageB.
how can i set focus from one tab to another without actually clicking the tab?
i tried this:
TabCtl.Pages("page2").SetFocus
it's comming up with an error - "object required"
i also tried
page.2.setfocus and that's comming up with an error that it's wrong syntax.
i also tried
formMyForm.page2.setfocus and that says object required as well.
so i know i'm not doing something right.
any suggestions?
thanks.
form1, subformA, subformB on tab control - tabctrl - pageA, pageB.
how can i set focus from one tab to another without actually clicking the tab?
i tried this:
TabCtl.Pages("page2").SetFocus
it's comming up with an error - "object required"
i also tried
page.2.setfocus and that's comming up with an error that it's wrong syntax.
i also tried
formMyForm.page2.setfocus and that says object required as well.
so i know i'm not doing something right.
any suggestions?
thanks.