akeller
Sep 30 2005, 10:34 AM
Any suggestions on how to allow objects in a Form Header to behave as a tab stop? The tab order goes immediately to objects in the Detail section of the form. I verfied that the Tab Stop property of the object in the Header is set to Yes. Also, the object displays on the Tab Order screen.
Thanks in advance!
-Alan
malcolmd83
Sep 30 2005, 10:35 AM
Behind the "On Load" event of the form, place the following code:
Me.txtFirstControl.SetFocus
hope this helps...
schroep
Sep 30 2005, 10:57 AM
Tabstops in a form header or footer behave separately from the detail section.
In other words, once you are in a section, hitting tab will only cycle through the controls in that section.
If you want to make them behave all as one group of tabstops, you either need to:
1) Put them all in the detail section, and get rid of your headers/footers.
2) Specifically handle the pressing of TAB and CTRL-TAB in the first and last control of each section, to setfocus to the appropriate control in the next or previous section.
akeller
Sep 30 2005, 11:41 AM
Thank you both!!!! In this case, setting focus to a control in the Header did the trick as the form just provides a list and I don't need to jump from header to detail.
-Alan
malcolmd83
Sep 30 2005, 12:17 PM
Alan, glad to help. All the best with your project!
Peter, thanks for adding the other suggestions...I may use that at some point; I was actually dealing with the same thing as Alan just this morning :-)
Have a great weekend!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.