hyperlink label to a tab control

yoavchen

Registered User.
Local time
Today, 06:28
Joined
Jan 31, 2005
Messages
53
i dont know how to make it work.
simple, clicking on label in tabcontrol1 will bring you to tabcontrol2
 
Code:
Private Sub MyLabel_Click()
    Me.TabPage2.SetFocus
End Sub
 
well, when i want to write it in the code, it's like it doesnt recognize the name of the tab. in fact when i write the code i cant also cant find it in the list when i want to autocompete it
 
Cna you post an example of what you have attempted?
 
Private Sub lbl1_Click()
Me.workers.SetFocus
End Sub


(workers is the tab page i want to go to)
 
Sorry, I meant an actual database example. Since you say the IntelliSense isn't recognising your page it would be easier to look at the database than looking at VBA code that, on paper, should work.
 

Users who are viewing this thread

Back
Top Bottom