Use an appropriate event to set the focus back to a control on the parent form.
I use the Exit event of a control on the subform. If the control is empty/null, move back to the main form, otherwise do something else on the subform.
Code:
'If the MyField field is empty, exit the subform and
'return the focus to the MyForm form.
If IsNull([MyField]) Then
Parent![Tenant].SetFocus
Else
...do something else
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.