rouxjean
asked on
Getting active Tab
Hi !
I have a standrad tab control in one Access form. How do i get the index, or name of the selected (active) tab ???
Thanks !
I have a standrad tab control in one Access form. How do i get the index, or name of the selected (active) tab ???
Thanks !
ASKER
Hi !
Thanks for your reply...I tried the damn thing and it didn't work and now it's ok...Oh well !
Can you also answer this easy question : how do i select programmatically a tab using this value ?
Thx
Thanks for your reply...I tried the damn thing and it didn't work and now it's ok...Oh well !
Can you also answer this easy question : how do i select programmatically a tab using this value ?
Thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks for your help :)
"The Value property of a tab control contains the index number of the current Page object. There is one Page object for each tab in a tab control. The first Page object always has an index number of 0, the second has an index number of 1, and so on."
If you wanted to know everytime tabs are changed, put code in the Change event for the Tab Control.
Private Sub TabCtl0_Change()
MsgBox "Changed to Tab " & TabCtl0.Value
End Sub
Regards,
Idle_Mind