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

Why doesn't this work?!? (Visible property)

Status
Not open for further replies.

snoopy75

Technical User
Aug 24, 2001
340
0
0
US
I'm trying to create a hidden form. So in the form's Open event, I put:

Me.Visible = False

However, the form still opens visible. What am I doing wrong?
 
Hi!

A couple of ideas. First, if you are opening the form from code or a macro then set the window mode to hidden. In code:

DoCmd.OpenForm "FormName", , , , , acHidden

If the form is to be invisible all of the time, then set the visible property to no in the form's property sheet.

hth
Jeff Bridgham
 
Hi! you can do like jebry said, or you can also open the form trough a macro and set the macro to open the form invisible!

Good luck!

Skep :)
 
ACCESS automatically sets the visibility property of forms to "true" when the form gets/has the focus.
So you first have change the focus by opening another form This form receives the focus automatically. Then you set the .visible property of the first form to FALSE.
Attention: As soon as you switch back to the invisible form this form will be visible again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top