move focus

B

blackcat

i would like to be able to move focus to a field depending if another field
is ticked. i can do this on the same form but can't get it to work with a
subform. any ideas? thanks
 
D

Duane Hookom

You must set the focus to the subform first and then the control on the
subform.
 
D

Duane Hookom

It would have helped if you provided the name of your subform control as well
as your current code/attempt.

Try something like:
Me.sfrmName.SetFocus
Me.sfrmName.Form.txtWhatever.SetFocus
 
Top