How to move to subform

G

Guest

My form contains 3 subforms (sub1,sub2,sub3)
How can I move from main form to control in subform by VB coding.
 
D

Dirk Goldgar

Nova said:
My form contains 3 subforms (sub1,sub2,sub3)
How can I move from main form to control in subform by VB coding.

Use the SetFocus method twice: first for the subform, then for the
control on the subform. For example,

Me!sfMySubform.SetFocus
Me!txtControlOnSubform.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