I'm trying to set the focus to a control on a subform, which is on a tab control. Do I need to reference the tab control?
The current focus is on another subform in the same tab control.
I have tried this, but get an error:
DoCmd.GoToControl "Forms![MainForm]![SubForm].Form![ControlName]"
This gets me to the subform, but it errors off when I add the control name:
DoCmd.GoToControl "[SubForm]"
I'm attaching this to the OnExit event of a field in a different subform.
The current focus is on another subform in the same tab control.
I have tried this, but get an error:
DoCmd.GoToControl "Forms![MainForm]![SubForm].Form![ControlName]"
This gets me to the subform, but it errors off when I add the control name:
DoCmd.GoToControl "[SubForm]"
I'm attaching this to the OnExit event of a field in a different subform.