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

tab control focus question

Status
Not open for further replies.

mortgsteps

Technical User
Apr 19, 2000
19
US
I have access 97 on win 95<br>My question is this:<br>I have a tab control with 5 tabs, each page has a subform.<br>When I open any tab the focus seems to be lost. I have tried to setfocus in the&nbsp;&nbsp;onenter event of the subform using the page control syntax from th page collection help.<br>None of these seem to work. When I put a msgbox on the gotfocus event of the first control on the subform, the box does not appear until I click out of the control and then click back in the control.<br>The setfocus code looks something like this:<br><br>set tbc = forms!sometab!tabctl1<br>set pge = tbc.pages(tbc.value)<br>pge.controls(&quot;some_form&quot;).controls![some_control].setfocus<br><br>the tab,subform, and control all have the correct values<br>Any ideas???
 
Placing a TAB control on a form does not make each TAB face a different form.<br>You have to write VBA code or create macro's to get the TAB control to behave.<br>I don't use it for that reason.<br>That's why they invented the Switch board.<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top