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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top