Checking if form is hidden

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a form that is sometimes hidden and sometimes visible.

i know you can use "CurrentProject.AllForms("frmWorkOrders").IsLoaded" to
see if a form is open, but even with the form hidden this code returns a TRUE.

is there a way to see using vb if a form is hidden!
 
Check the Visible property of the form ...

Public Sub TestSub2()

DoCmd.OpenForm "frmTest"
Debug.Print Forms("frmTest").Visible
DoCmd.Close acForm, "frmTest"
DoCmd.OpenForm "frmTest", , , , , acHidden
Debug.Print Forms("frmTest").Visible
DoCmd.Close acForm, "frmTest"

End Sub
 
Back
Top