Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capturing Tab Control Page Index

Status
Not open for further replies.

meBrian

Programmer
Aug 7, 2001
73
US
I want to capture to the Tab Control's Page Index when a page is selected. The click event for the tab control only fires when you click on the page itself. I want to catch it when the tab is clicked. Any ideas are greatly appreciated!

Thanks,
Brian
 
Hi,

Try the CHANGE event of the TAB Control.

Hope it helps!

Salvatore Grassagliata
 
Unfortunately, I tried that one with no success. The change event will fire when controls on the Tab control are changed/modified, but it doesn't include moving between pages.
 
Try this
Private Sub Tab1_Change()
Select Case Me![InvTabs].Value
Case 0
'Tab 1
Case 1
'Tab 2
Case 2
'Tab3
End Select
End Sub
 
I don't kmow what I wasn't doing before, but I got it. It is the Change event, RickBerem, but I don't know why it wasn't being trapped before.

Thanks
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top