G
Guest
I'm having difficulty setting focus on a Sub-Form containing Tabs after
clicking a button on the main form. Here's a detailed description.
My Main Form has 8 Tabs. On Tab #7, I have a button labeled "View". (The
button is right next to a text field - pressing the button takes you to the
sub-form where that value came from).
When pressing the button on Tab #8, I want the form to bounce to Tab #3. On
Tab #3, I have a subform... and on that subform I have another Tab Control
Box. That Tab Control Box on the sub-form has 4 tabs. I need to go to Tab
#4 of that TabControl Box. Is there a way to do this? I tried multiple
combinations of the SetFocus and am having no luck.
To summarize, when pressing the button on Tab #7 of the main form, I want my
form to bounce to Tab #3 of the main form >>> and then go to Tab #4 of the
sub-form found on Tab #3. Is that possible? And if you wanted to, can you
go to a specific field on that sub-form?
The TabControl Box Name for the Main Form is "TabCtl0" and the TabControl
Box Name for the Sub-Form on Tab #3 is "TabCtl1".
Me.TabCtl0.Value = 2 ... takes me to the right tab on my main form. but I
now need to go to Tab #4 on the sub-form contained in this tab.
Any help is greatly appreciated.
Thanks so much.
Frank
clicking a button on the main form. Here's a detailed description.
My Main Form has 8 Tabs. On Tab #7, I have a button labeled "View". (The
button is right next to a text field - pressing the button takes you to the
sub-form where that value came from).
When pressing the button on Tab #8, I want the form to bounce to Tab #3. On
Tab #3, I have a subform... and on that subform I have another Tab Control
Box. That Tab Control Box on the sub-form has 4 tabs. I need to go to Tab
#4 of that TabControl Box. Is there a way to do this? I tried multiple
combinations of the SetFocus and am having no luck.
To summarize, when pressing the button on Tab #7 of the main form, I want my
form to bounce to Tab #3 of the main form >>> and then go to Tab #4 of the
sub-form found on Tab #3. Is that possible? And if you wanted to, can you
go to a specific field on that sub-form?
The TabControl Box Name for the Main Form is "TabCtl0" and the TabControl
Box Name for the Sub-Form on Tab #3 is "TabCtl1".
Me.TabCtl0.Value = 2 ... takes me to the right tab on my main form. but I
now need to go to Tab #4 on the sub-form contained in this tab.
Any help is greatly appreciated.
Thanks so much.
Frank