Connecting Tech Pros Worldwide 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.


(Pete Cresswell)
Guest
 
Posts: n/a
#2: Nov 13 '05

re: How to identify TabControl index?


Per deko:[color=blue]
>This always prints 0. How do I get the Tab/Page that is clicked, or better
>yet, that is currently active?[/color]

myTabControl.Value.

It's zero-based.
--
PeteCresswell
Darryl Kerkeslager
Guest
 
Posts: n/a
#3: Nov 13 '05

re: How to identify TabControl index?


Umm, of course, when you post this twice you get two replies ..

It appears that I should have read bottom to top this time ..

Darryl Kerkeslager

"deko" <www.clearpointsystems.com@use_contact_form.com> wrote:[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[/color]
better[color=blue]
> yet, that is currently active?
>
> Thanks in advance.
>
>[/color]


deko
Guest
 
Posts: n/a
#4: Nov 13 '05

re: How to identify TabControl index?


> myTabControl.Value.

That's the ticket! Thanks!


Closed Thread


Similar Microsoft Access / VBA bytes