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

to move tab form one subform to another

Status
Not open for further replies.

kavi98

Programmer
Dec 14, 2000
48
US
I have a main form and three subforms on it but when i try to move the tab from one subform to another it saves the record and again goes back to the beginning of the same subform,is there a way i can get the tab to go to the next subform.
and when i am one the thrid subform the tab to move to the main form.
 
You can move from one subform to another by testing the key that was pressed in the KeyDown event procedure.eg.

If KeyCode = 9 then
Forms![MainForm]![Subform].setfocus
Endif

Alternatively, you can program a function key to sendkeys Ctrl-Tab to move between subforms.
 
i mainly have textboxes,and the procedures which i get for the subform are on enter and on exit.
if i write a procedure in the form which is a subform in another for ,will it work. through the main form.
 
You will need to write the procedure in the Keydown event of the last, or only, text box of each subform.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top