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!

Clear logon name 1

Status
Not open for further replies.

ashows

MIS
May 10, 2002
25
US
I've set up user-level security on an Access XP database. Is there a way to "clear out" the name box on the logon form so the name of the last person who logged in is not displayed when the database is opened?

Thanks.
 
The only way I know how is described by the following article:


It is stored in the registry under the key LastUser so I guess another option would be that you could write some code to clear this setting if you wanted. Obviously you might have some security issues depending on what context being run under.

Hope this helps....
 
One more question, when I use the /user switch as suggested in the Microsoft article, the login screen comes up with the cursor blinking in the password text box instead of the user name text box. Is there a way to make the cursor first appear in the user name box instead?
 
sorry but I don't really have an idea how you would be able to get the focus back on user when it starts.

:(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top