Tab control command button

Jon123

Registered User.
Local time
Today, 17:41
Joined
Aug 29, 2003
Messages
668
what is the code for going to a specific page in a tab control. If on on page 3 say I want a command button on the form that will open to page 15 is this possible.
DoCmd.gotopage [page15]
does not work

jon
 
I have tried Setfocus gotopage and they error out
 
Try Me.MyTabsCtl.Value = <tabnum> where tabnum is between 0 and number of tabs - 1
 
AadvdV is right (although you don't need the .Value part).

Or you can just refer to the page name:

If you have one of the pages named Page4 then you can just use

Me.Page4.SetFocus
 

Users who are viewing this thread

Back
Top Bottom