| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
|||
|
|||
|
How do I set the default tab?
I have a form with a tab control. The rightmost tab is always open when the form loads. I want the left-most tab to be open when the form loads. I can't seem to figure out how to change it.
I tried... 1) Me.TabCtl0.Value = 0 2) Me.TabCtl0.Value = 11 ...in the form_load() sub. One of them should have worked! Help! |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Re: How do I set the default tab?
Change the Page Index property of the page. They start from 0.
|
|
#3
|
||||
|
||||
|
Re: How do I set the default tab?
You can also just use the page name:
Me.YourTabPageName.SetFocus |
|
#4
|
|||
|
|||
|
Re: How do I set the default tab?
How can I do that?
|
|
#5
|
|||
|
|||
|
Re: How do I set the default tab?
Thank you! This worked!
![]() |
|
#6
|
|||
|
|||
|
Re: How do I set the default tab?
Just FYI, right click the tab and click Page Order then move things up or down as you wish. You can also set it via the Properties Sheet on the Format tab by clicking on the Page you wish to make the first and set it to 0.
Glad SOS' solution worked for you. |
| Sponsored Links |
![]() |
| Tags |
| default, tab control |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook calendar (Delete and update) | robyholmes | Modules & VBA | 20 | 02-01-2010 12:19 AM |
| Formatting Pivot Chart via VB code | sphynx | Modules & VBA | 0 | 11-21-2007 07:01 AM |
| Set Default of Field from Another Table's Field Entry | SaraRob | Tables | 0 | 06-12-2006 03:39 PM |
| Query to fill in blanks within a table? Maybe some other way? | robjones23 | Queries | 11 | 03-21-2005 02:10 AM |