J
John S. Ford, MD
In Access 97, have a form with a subform on it. Upon opening the main
form, I'd like the focus to be immediately set to a textbox on the subform.
The name of the subform control (not the actual subform is sbfctlSubForm.
(In case it matters, the name of the actual subform that was embedded into
the main form is sbfSubForm). I've tried the following which doesn't work:
Private Sub Form_Open(Cancel As Integer)
Me!sbfctlSubForm.Form!txtControl.SetFocus
End Sub
What am I doing wrong?
John
form, I'd like the focus to be immediately set to a textbox on the subform.
The name of the subform control (not the actual subform is sbfctlSubForm.
(In case it matters, the name of the actual subform that was embedded into
the main form is sbfSubForm). I've tried the following which doesn't work:
Private Sub Form_Open(Cancel As Integer)
Me!sbfctlSubForm.Form!txtControl.SetFocus
End Sub
What am I doing wrong?
John