M mic907 Registered User. Local time Today, 13:14 Joined Nov 21, 2006 Messages 62 Feb 9, 2007 #1 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!
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!
KenHigg Registered User Local time Today, 13:14 Joined Jun 9, 2004 Messages 13,327 Feb 9, 2007 #2 Why don't they just click the tab?
boblarson Smeghead Local time Today, 10:14 Joined Jan 12, 2001 Messages 32,059 Feb 9, 2007 #3 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.
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.