If you used A2K or later:
CurrentProject.AllForms("FormName").IsLoaded
will return True (Form is open / loaded) or False.
Screen.ActiveForm
will return the Form Object of the active Form. If you want to know the
name of the active Form:
Screen.ActiveForm.Name
A Form *must* be active for a Control on the Form (or the Form itself *only
if* there are no focusable Controls on the Form) to have the Focus. So, in
most cases, a Control on the Form has the Focus, not the Form. If you want
to find the Control that has the Focus, you can use:
Screen.ActiveControl