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

Tab from Form to Subform and back 1

Status
Not open for further replies.

kirstenlargent

Technical User
Sep 30, 2001
43
US
I have a form with a subform. I am unable to tab from the main form to the subform. If I click in the subform, I can not tab through the records in the subform, but I can't tab back to the main form after I have tabbed through all the subform records.
The fields in the main and subform are set to be tab stops. The subform does have Allow Additions set to No. Not sure if this is causing the problem or not.
Any advice would be greatly appreciated!
 
If I'm not mistaken, something like ctrl+tab will move from subfrom to form. However, what you could do is put an unbound control on the subform and set it's forecolor and backcolor properties the same as the background of your subform (basically making the control invisible). Also, it needs to be the last control of the subform, Then, in the OnGotFocus event of the control, setfocus to the main form. Consequently, when the user tabs off the last visible control on the subform, the cursor will move to the main form.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top