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!

Form disappear

Status
Not open for further replies.

tinatt

Programmer
Jun 18, 2001
15
CA
One last quick question. I've created a user login form where the user inputs their user ID and password, after the user inputs their login information though and the form opens another form, the login form does not disappear and the Main Menu opens up behind the login form. How do I make the login form disappear?

Thanks, Tina
 
Add this code before your "End Sub":

DoCmd.Close acForm, "Form Name"

 
In your form, you have an event that causes the main form to open. In the code for that event, put one of the following two lines:

1)If you want your log-in form to close, do this:
[tt]DoCmd.Close acForm, "FormName"[/tt]

or
2) If you want your log-in form to just be invisible, do this:
[tt]Me.Visible = False[/tt]
Jonathan
________________________________________
It is not fair to ask of others what you are unwilling to do yourself.
-Eleanor Roosevelt
 
Thanks very much for your help.

Tina.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top