Setfocus on a control on a subform

  • Thread starter Thread starter Brigham Siton
  • Start date Start date
Great. Thank you very much.

Brigham

chas said:
Hi Brigham,

I think you need to use the full path to the control on
the subform. Something like:

Forms![Orders]![Orders Subform].Form![UnitPrice].SetFocus

hth

chas
-----Original Message-----
How do I setfocus on a control in a subform from the main form?

Thank you.


.
 
First set focus on the subform control (the control on the main form that
holds the subform). Then set focus on the control in the subform. You need
to do this in two steps.

Me.subform.SetFocus
Me.subform!control.SetFocus
 
Back
Top