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 strongm 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,
 
The easiest way for me to do is to do the ff:

1. docmd.openform "MyForm"
2. In the Form_Load module of the MyForm form, add the ff:
me.visible = false.

'What this does is it legally loads the form in its entirety with all the functions and procedures you write for it and then hides it.

 
I Cannot use the DoCmd function because this is the initial form Access loads.

When I do:

Private Sub Form_Load()
Me.Visible = False
End Sub

After opening the Form (Dubbleclick on it in Access Forms), it stays visible.

So I guess this is not what I want :)
Thanks, anyway

 
Why not open the form in desing mode and set the form visible property to false. Then when it opens it will not be visible by default. Then set it to visible in code when necessary.

Steve King Growth follows a healthy professional curiosity
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top