Random Tab Index Problem

B

bwilcox

In the following sub:

Private Sub TabCtl0_Change()
code for different tab pages
select specific page
combobox1.tabindex = 0
combobox2.tablindex = 1
"
combobox37.tabindex = 36
end select
end sub

However, when I click on the page tab, the index numbers
are random. The 0 is 37 or 33 or 2. Any ideas on what is
is wrong or how to fix?

bwilcox
 
R

Rick Brandt

bwilcox said:
In the following sub:

Private Sub TabCtl0_Change()
code for different tab pages
select specific page
combobox1.tabindex = 0
combobox2.tablindex = 1
"
combobox37.tabindex = 36
end select
end sub

However, when I click on the page tab, the index numbers
are random. The 0 is 37 or 33 or 2. Any ideas on what is
is wrong or how to fix?

Where are you running this code? Unless you had the form open in design mode
any changes like this would not be permanent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top