Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if form is open

Status
Not open for further replies.

RobM76

Technical User
Feb 6, 2008
17
CA
Hi there,

Can someone please tell me how to check if a form is open??

thanks....
 

Code:
    Dim frmMyForm As Form

    For Each frmMyForm In Forms
        If frmMyForm.Name = "Form1" Then
            MsgBox "Bingo!"
        End If
    Next frmMyForm

Have fun.

---- Andy
 
Thats great.

Thanks Andrzejek!!!!!!!!!!!!!
 
Um ... that just tells you if the form is loaded, not if it is open ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top