If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView Then
IsLoaded = True
End If
End If
End Function
Private Sub Form_Close()‘form suppliers
' Close Product List form and Products form if they are open.
If IsLoaded("roduct List") Then DoCmd.Close acForm, "roduct List"
If IsLoaded("roducts") Then DoCmd.Close acForm, "Products"