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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab.OnClick 1

Status
Not open for further replies.

wreded

Technical User
Joined
Dec 18, 2001
Messages
119
Location
US
i have a form with (currently) 2 tabs on it. What i want to do is when users click on either tab focus is changed from the form within the tab to a control on the main form. So far i've tried:
Code:
Private Sub pg01_Click()
'    Forms!frmPersinfo!txtFindMe.SetFocus
'    Me.txtFindMe.SetFocus
    Me!Parent!txtFindMe.SetFocus
End Sub
i can't seem to find the 'right' was to do this.
Any ideas?
Thanks,
Dave
 
If the user's clicking on a control in a form on a page then I'm not sure that the page's click will fire at all. Have you traced the code to see if the event is running?

Geoff Franklin
 
The tab container's "on change" event worked like i wanted, and how i thought the individual tab's "on Click" event should work. Thanks boblarson!
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top