G
Guest
I have a form which contains a subform. I want users to be able to 'Tab'
through the textboxes on the subform and then have the cursor move on to the
texboxes on the form as 'Tab' continues to be pressed. I have used the
following code in the last textbox on the subform's OnKeyDown Event to get
the cursor to proceed to the form:
If KeyCode = 9 Or KeyCode = 13 then
Forms![MainFormname]![TextFieldName].SetFocus
End If
This almost works. When 'Tab' is pressed the cursor skips the textbox
specified in [TextFieldName] and moves on to the next text box according to
the Tab Index. The Tab Stop for the skipped textbox is set to Yes. How can I
fix this?
TIA
through the textboxes on the subform and then have the cursor move on to the
texboxes on the form as 'Tab' continues to be pressed. I have used the
following code in the last textbox on the subform's OnKeyDown Event to get
the cursor to proceed to the form:
If KeyCode = 9 Or KeyCode = 13 then
Forms![MainFormname]![TextFieldName].SetFocus
End If
This almost works. When 'Tab' is pressed the cursor skips the textbox
specified in [TextFieldName] and moves on to the next text box according to
the Tab Index. The Tab Stop for the skipped textbox is set to Yes. How can I
fix this?
TIA