UserLogOff

soundsfishy

Registered User.
Local time
Tomorrow, 05:42
Joined
Sep 25, 2002
Messages
174
Ive split my DB and now Im trying to add a Logoff function that I got from RogerAccessLibrary.

I have a logon form and I want to add the code on this form. The form checks a field every 5 minutes and lauches a message form.

I need to have my LogOn form as hidden after the user enters the password to open the data entry form.

How I use code to hide a form.?
 
To open the form hidden...
Code:
         DoCmd.OpenForm "YourForm", acNormal, "", "", , acHidden
to hide the form after an event (LogOn)...
Code:
         Me.Form.Visible = False
HTH
IMO
 
Last edited:
IMO said:
Code:
Me.Form.Visible = False

Or, more simply:

Me.Visible = False


Another route you may want to take is if the form you wish to hide is not the active form:

Forms("MyForm").Visible = False

or

Forms!MyForm.Visible = False
 
Yep! that exactly what I want .

Thanks.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom