You can use the On Change TabControl event handler to look at the value
of the tab control (the new tab to be displayed) and proceed from that
point, such as
Private Sub TabCtl0_Change()
If Me.TabCtl0.Value = 2 Then Me.TabCtl0.Value = 1
End Sub
will refuse to display the third tab (value=2), and would rather redirect it
to the second tab (value=1); tab controls value start at 0
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.