IsLoaded

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
 
R

Rick Brandt

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top