Full Version: Tab out of a subform
UtterAccess Forums > Microsoft® Access > Access Forms
I have a form with several subforms in it. I set the main tab order to select the subforms, but you can't tab out of the subforms to continue filling out the form. Any ideas?
There are a few ways to handle this: you can trap the keystroke and check if it's a tab key then act appropriately, or you can put code in the GotFocus event of the first control of the subform and check if the focus came from the last control. If so, move the focus to the second subform. HTH
Also, to tab out of a subform, use CTRL-Tab.
You can also take advantage of each form's "Cycle" property, set it to 'Current Record' and set the "After Update" property of each form's last control to reset the focus to the appropriate location.
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.