Check a form without opening it..

W

Warrio

Hello!

How is it possible to check if a form is open without loading it
automaticly?..
because if I try to run the code below, the form is loaded automaticaly and
apears on the top of the actual form..

If Form2.Visible Then

Endif

Thanks for any suggestion.
 
N

Neil

Hello,

You do not say what version of Access you are using. For Access 2000 and
later (i think) you can use the following:

If CurrentProject.AllForms("YourFormName").IsLoaded Then
' Form is open
End If

Before Access 2000 i think there is a general function called IsLoaded in
the Northwind sample database which you can copy and use in your project.

HTH,

Neil.
 
W

Warrio

Thanks a lot !
works


Neil said:
Hello,

You do not say what version of Access you are using. For Access 2000 and
later (i think) you can use the following:

If CurrentProject.AllForms("YourFormName").IsLoaded Then
' Form is open
End If

Before Access 2000 i think there is a general function called IsLoaded in
the Northwind sample database which you can copy and use in your project.

HTH,

Neil.
 

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

Top