By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 IT Pros & Developers. It's quick & easy.

Open form to a specific tab

P: 67
How do I open a form to a specific tab?

Thanks,

CB55
Apr 9 '08 #1
Share this Question
Share on Google+
1 Reply


Megalog
Expert 100+
P: 378
Tab pages are set by the tab control's value #, starting at 0.
So if you have 4 tabs, and you want to open to the 3rd tab when you open the form, the following would work:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2. Me.TabCtrl1.Value = 2
  3. End Sub
Apr 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.