Apr 14, 2008 #1 RobM76 Technical User Joined Feb 6, 2008 Messages 17 Location CA Hi there, Can someone please tell me how to check if a form is open?? thanks....
Apr 14, 2008 #2 Andrzejek Programmer Joined Jan 10, 2006 Messages 8,576 Location US Code: Dim frmMyForm As Form For Each frmMyForm In Forms If frmMyForm.Name = "Form1" Then MsgBox "Bingo!" End If Next frmMyForm Have fun. ---- Andy Upvote 0 Downvote
Code: Dim frmMyForm As Form For Each frmMyForm In Forms If frmMyForm.Name = "Form1" Then MsgBox "Bingo!" End If Next frmMyForm Have fun. ---- Andy
Apr 14, 2008 Thread starter #3 RobM76 Technical User Joined Feb 6, 2008 Messages 17 Location CA Thats great. Thanks Andrzejek!!!!!!!!!!!!! Upvote 0 Downvote
Apr 14, 2008 #4 strongm MIS Joined May 24, 2001 Messages 20,255 Location GB Um ... that just tells you if the form is loaded, not if it is open ... Upvote 0 Downvote