G
Guest
I'm having trouble with Select Case ...
Looking on here I find I can determine the value of a tab control...0, 1, 2,
etc.
I am trying to prevent the user from leaving a tab, or moving to another
tab, until completing what I want done at that tab. The leaving is easy, done
that. However moving to another tab is giving me fits.
Select Case Me.tabControlMain
Case 0
If something Then
response something
Me.tab0.SetFocus
End If
Case 1
End Select
If the user is on tab0, with the OnChange of the TabControl with the above
code, clicking on tab1 (or any other) the user should get my message and be
returned to tab0.
Looking on here I find I can determine the value of a tab control...0, 1, 2,
etc.
I am trying to prevent the user from leaving a tab, or moving to another
tab, until completing what I want done at that tab. The leaving is easy, done
that. However moving to another tab is giving me fits.
Select Case Me.tabControlMain
Case 0
If something Then
response something
Me.tab0.SetFocus
End If
Case 1
End Select
If the user is on tab0, with the OnChange of the TabControl with the above
code, clicking on tab1 (or any other) the user should get my message and be
returned to tab0.