IsLoaded

  • Thread starter Thread starter Warrio
  • Start date Start date
W

Warrio

Hello!

How come that the following statement:

FormIsOpen = CurrentProject.AllForms("Form22").IsLoaded

always returns False when the Form22 is opened in another form as a subForm.
Shouldn't the function return True even when the form is loaded as a
subform?

Thanks for any suggestion
 
Warrio said:
Hello!

How come that the following statement:

FormIsOpen = CurrentProject.AllForms("Form22").IsLoaded

always returns False when the Form22 is opened in another form as a
subForm. Shouldn't the function return True even when the form is
loaded as a subform?

Thanks for any suggestion

Nope. Forms displayed within subform controls are not considered open and
they are not found in the Forms collection. They can be referenced via the
parent form that the subform control resides in...

Forms!ParentForm!SubformControlName.Form
 
Back
Top