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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Status (Open)

Status
Not open for further replies.

Jefftopia

Programmer
Jul 30, 2002
104
US
I would like my code to execute a msgbox if a certain form is open. Is there some kind of Boolean that will tell me if a form is currently open?
 

For Each Form In Forms
If Form.Name = "FormName" Then
MsgBox Form.Name & " is open", vbOKOnly
End If
Next Form

Forms is standard VB colllection of open forms Gary Parker
Systems Support Analyst
 
on form load

put

Private sub Form_Load
msgbox " what ever you message is"
end sub
 
Be careful. The forms collection contains all loaded forms, but a loaded form is not necessarily visible/open.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top