boblarson
Smeghead
- Local time
- Today, 14:43
- Joined
- Jan 12, 2001
- Messages
- 32,059
Something like this:
And you can put your code to do whatever based on which tab was selected in there. I just used message boxes as kind of a place holder and to demonstrate.
Code:
Private Sub YourTablControlNameHere_Change()
Select Case Me.YourTablControlNameHere
Case 0
MsgBox "You clicked Tab 1"
Case 1
MsgBox "You clicked Tab 2"
Case Else
MsgBox "You shouldn't see this but it is here in case something doesn't get assigned"
End Select
End Sub
And you can put your code to do whatever based on which tab was selected in there. I just used message boxes as kind of a place holder and to demonstrate.