G
Guest
I have a tabControl on frmForm. When the user selects a particular tab (e.g.
Tab2) I would like to run a procedure. I can activate a procedure when the
user clicks on the tab control using: private sub TabControl_Change(). But
how do I evaluate which tab was selected (for example)
private sub TabControl_Change()
if me.TabControl = "Tab2" Then
Beep
End if
End Sub
I tried this but it doesn't work. Any help would be appreciated. Thanks.
Tab2) I would like to run a procedure. I can activate a procedure when the
user clicks on the tab control using: private sub TabControl_Change(). But
how do I evaluate which tab was selected (for example)
private sub TabControl_Change()
if me.TabControl = "Tab2" Then
Beep
End if
End Sub
I tried this but it doesn't work. Any help would be appreciated. Thanks.