Nov 26, 2002 #1 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?
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?
Nov 26, 2002 #2 GJParker Programmer Jul 4, 2002 1,614 GB 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 Upvote 0 Downvote
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
Nov 26, 2002 #3 M626 Programmer Mar 13, 2002 299 on form load put Private sub Form_Load msgbox " what ever you message is" end sub Upvote 0 Downvote
Nov 26, 2002 Thread starter #4 Jefftopia Programmer Jul 30, 2002 104 US thnks GJParker. exactly what i was looking for Upvote 0 Downvote
Nov 28, 2002 #5 strongm MIS May 24, 2001 20,237 GB Be careful. The forms collection contains all loaded forms, but a loaded form is not necessarily visible/open. Upvote 0 Downvote
Be careful. The forms collection contains all loaded forms, but a loaded form is not necessarily visible/open.
Nov 29, 2002 Thread starter #6 Jefftopia Programmer Jul 30, 2002 104 US strongm, thanks,,point taken Upvote 0 Downvote