Full Version: SubForm - Tab out
UtterAccess Forums > Microsoft® Access > Access Forms
mikes6453
I have a number of subforms on a form. I'd like to be able to set the tab order to have cursor move easily around the form. How do I get from one to another without using CTL-Tab?
Thanks,
Mike
freakazeud
Hi,
you are probably most flexible by using code to achieve this.
In the on lost focus event of the last control of your main form set focus to the first control in your first subform e.g.:
e.YourSubformControl.Form.YourControl.SetFocus
Then in the lost focus event of the last control of the first subform move focus to the first control in your next subform and so on and on until you move focus in the last control of the last subform back to the first control on the parent form.
HTH
Good luck
This is a "lo-fi" version of UA. To view the full version with more information, formatting and images, please click here.