quick tab nav question

mic907

Registered User.
Local time
Today, 13:14
Joined
Nov 21, 2006
Messages
62
I want to make a button that will lead the user to another tab (which contains a subform). What is the code required for this? Thanks in advance!
 
Why don't they just click the tab?
 
There's a couple ways for this to work:
Code:
    Me.YourMainTabControl.Pages(1).SetFocus
or
Code:
    Me.YourMainTabControl.Pages("YourPageNameHere").SetFocus
the (1) in the first example means the 2nd tab, so replace with 0 for the first tab, 2 for the third, etc.
 

Users who are viewing this thread

Back
Top Bottom