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

Initialy hide form

Status
Not open for further replies.

hansaplast

Programmer
Dec 17, 2001
61
NL
Hi,

I want to initialy hide a form in Access .
I do not mean:
DoCmd.OpenForm "MyForm", WindowMode:=acHidden

Is it possible to do this at "Form_Open"?
Me.Visible = False
at Form_Open doesn't work.

Appreciate Any help.
Thanks,
 
It won't work because the form doesn't actually open until the Form_Open is finished. I'm not to sure with Access, but is there a Form_Activate, or Form_Load. Those might work. Craig, mailto:sander@cogeco.ca

"Procrastination is the art of keeping up with yesterday."

I hope my post was helpful!!!
 
This code should work fine. If your window is still visible soem other code must be counteracting this. For example, if you had the following:

Me.visible = false
Me.setfocus

the form would still be visible. Best Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top