I created log on dialog
How to create a Sign out button, click to Sign out will log off logged account
Thanks
I created log on dialog
How to create a Sign out button, click to Sign out will log off logged account
Thanks
What do you want? Close the app? Just return to the Login form? Set a date/time field in table to show when user finished?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Just return to the Login form
Logoff the account loging ...
Just close the current form and open the Login form as would any other form.
DoCmd.Close acForm, Me.Name, acSaveNo
DoCmd.OpenForm "Login"
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
It's OK, but still to keep user's password before
I don't understand your last post. Is the issue resolved?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I'm using your code but when I log off, in username & password box still remember account's username & password before
Please advices
Is the Login form unbound? Do you close the Login form after user completes login?
I would have to analyse code to determine what is happening. Direct examination of form would be helpful. Post login form code or provide project. Follow instructions at bottom of my post.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Please see my attached file: http://www.mediafire.com/?82dsms9mapfh5s9
I created a Sign Out button
when I logging by admin account (username/password: admin/admin) and click sign out
It will back to Login form, but it still remember admin's username and password
I want to clear it when back to Login form
Sorry because my English not very well ..
The textboxes are still populated because you don't close the Login form, you just make it not visible. Options:
1. Close the login form after login, reopen during sign out
2. Set the textboxes to Null after login
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
How I can do this by code?
Could you give me code?
If code behind the Login form, simply:
Me.cboEmployee = Null
Me.txtPassword = Null
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
it's fine
Many thanks