Set focus on a subform

  • Thread starter Thread starter Tony_The_Crumpet
  • Start date Start date
T

Tony_The_Crumpet

Guest
i have a form with a form within it, a subform. I can set focus on any field on form. I really need to know how to set focus on a field in the Sub-form.
 
If you are wanting to set focus to a control on the subform from the MainForm, then use this example:

Me![YourSubFormControl].Form![ControlinSubForm].SetFocus

Change "YourSubFormControl" to the name of the SubForm Control on the MainForm. Also change "ControlinSubForm" to the name of the control on the SubForm you want to focus set to.

HTH
RDH
 

Users who are viewing this thread

Back
Top Bottom