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!

Logout current user programatically? 2

Status
Not open for further replies.

Keph

Technical User
Oct 15, 2002
16
0
0
CA
Hi, I'm using user-level security and I'm wondering if there is a way to logout the current user using VBA and have access prompt the user for a new username and password. This would make switching between users much easier.

Thanks,
Keph
 
You have to quit the current instance and open it back again. Just create a log out button somewhere and put this code in.

Code:
Dim strPath As String
strPath = SysCmd(acSysCmdAccessDir) & "MSAccess.exe /wrkgrp " _
    & "\\OMAXJSCXBDC0\Public\SignIn\Secure.mdw " _
    & "C:\SelfServe\SelfServeFrontEnd.mdb"
Call Shell(strPath, vbMaximizedFocus)
Application.Quit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top