Connecting Tech Pros Worldwide Forums | Help | Site Map

How to identify TabControl index?

deko
Guest
 
Posts: n/a
#1: Nov 13 '05
Private Sub tabTools_Change()
Debug.Print Me.tabTools.Pages.Item(0)
End Sub

This always prints 0. How do I get the Tab/Page that is clicked, or better
yet, that is currently active?

Thanks in advance.



Janross
Guest
 
Posts: n/a
#2: Nov 13 '05

re: How to identify TabControl index?


>[color=blue]
>Private Sub tabTools_Change()
> Debug.Print Me.tabTools.Pages.Item(0)
>End Sub
>
>This always prints 0. How do I get the Tab/Page that is clicked, or better
>yet, that is currently active?
>[/color]

Try this:

Private Sub Tabtools_Change()
Debug.Print Me!Tabtools.Value
End Sub


Remember that the first one is 0, and they go up from there.

HTH

Jan
Jan Stempel
Stempel Consulting
Closed Thread


Similar Microsoft Access / VBA bytes