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!

Invisible Form - part 2 1

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
Again I didn't find any solution to make a form invisible.
The method .Visible = false doesn't work
not even with a form.refresh after it. I can still see it.
Any ideas???

Thanks in advance!
Alcar
 
Try me.visible = false

or if you are referencing form1 from form2 and you want form1 to become hidden try:

forms!form1.visible = false

Nick
 
Hi!

You shouldn't need to use it but form refresh isn't what you are looking for, you want repaint. Refresh requeries the form and repaint reloads the screen.

hth
Jeff Bridgham
 

Repaint doesn't help either...

this is the code of the invisible form

Private Sub Form_Load()

DoCmd.OpenForm "Status"
Me.Visible = False
Me.Repaint

End Sub

 
I am not too sure I understand what you are doing. What about docmd.openForm "formName",,,,,acHidden

Not sure whether the Constant is acHidden or if it after the correct comma.

Nick
 
Hi!

The only other thing I can think of is to switch the Me.Visible = False and the DoCmd.OpenForm "Status" lines. BTW, is Status a modal form?

hth
Jeff Bridgham
 
Great job nick!!

That totally solved my problems.. with this code

DoCmd.OpenForm "Invisible", , , , , acHidden

the status form will open the invisible one in the load event. the if I close the statu form everything is fine. Now I can catch the close event of the entire project with this invisible form!!!

Thank you again both of you
Alcar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top