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 derfloh 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
Dec 18, 2001
119
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
 
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