Tab order and subforms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello there.
This is my case:
I do have a forms containing a tab control. The form stars to be filled in
from the form header. From there it should go then to the tab control. Inside
the tab control pages, in one of them, there are a few subforms.
The point:
I want to use the tab control in a way that I can send the focus to the
right tab control page, from the form header, and inside the tab page to fill
in the fields and when the focus goes to the subform to be able to send the
focus to the next subform or field or control.
Can anybody please give me a hand!>
 
There is no need to set the focus to the TAB, all you need is to set the
focus to a field in the TAB, or to a field in a sub form, and the Tab will
get the focus also

To set the focus to a field in the Main form

Forms![MainFormNAme]![FieldName].SetFocus

To set the focus to a field in the sub form
Forms![MainFormNAme]![Sub Form control name].Form![FieldName].SetFocus
 
Thank for your interest in my case.
My problem is that the focus must be sent by the use of the tab key, due to
the reason that the database is meant to be used thru the keyboard without
the use of mouse.
Do you have any clue?

Ofer said:
There is no need to set the focus to the TAB, all you need is to set the
focus to a field in the TAB, or to a field in a sub form, and the Tab will
get the focus also

To set the focus to a field in the Main form

Forms![MainFormNAme]![FieldName].SetFocus

To set the focus to a field in the sub form
Forms![MainFormNAme]![Sub Form control name].Form![FieldName].SetFocus

--
The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck


L. R. Hurtado said:
Hello there.
This is my case:
I do have a forms containing a tab control. The form stars to be filled in
from the form header. From there it should go then to the tab control. Inside
the tab control pages, in one of them, there are a few subforms.
The point:
I want to use the tab control in a way that I can send the focus to the
right tab control page, from the form header, and inside the tab page to fill
in the fields and when the focus goes to the subform to be able to send the
focus to the next subform or field or control.
Can anybody please give me a hand!>
 
You cant use the TAB key to jump from sub form back to the main form or to
another field in another sub form, what you can do, is use the Lost focus
property on the last field in the sub from, and set the focus to another
field using the example I gave you in the first post.


--
The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck


L. R. Hurtado said:
Thank for your interest in my case.
My problem is that the focus must be sent by the use of the tab key, due to
the reason that the database is meant to be used thru the keyboard without
the use of mouse.
Do you have any clue?

Ofer said:
There is no need to set the focus to the TAB, all you need is to set the
focus to a field in the TAB, or to a field in a sub form, and the Tab will
get the focus also

To set the focus to a field in the Main form

Forms![MainFormNAme]![FieldName].SetFocus

To set the focus to a field in the sub form
Forms![MainFormNAme]![Sub Form control name].Form![FieldName].SetFocus

--
The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck


L. R. Hurtado said:
Hello there.
This is my case:
I do have a forms containing a tab control. The form stars to be filled in
from the form header. From there it should go then to the tab control. Inside
the tab control pages, in one of them, there are a few subforms.
The point:
I want to use the tab control in a way that I can send the focus to the
right tab control page, from the form header, and inside the tab page to fill
in the fields and when the focus goes to the subform to be able to send the
focus to the next subform or field or control.
Can anybody please give me a hand!>
 
Back
Top