You can use the
Set_Screen_ActiveSubformControl function described in the "More Information" section to determine what subform control contains the
Screen.ActiveControl. This function sets a global control variable
Screen_ActiveSubformControl to the currently active subform control on screen. The
Set_Screen_ActiveSubformControl() function returns one of the following results:
True: Screen_ActiveSubformControl was set to the subform control
that contains Screen.ActiveControl.
-or-
False: Screen.ActiveControl does not exist or is not in a subform.