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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Password 1

Status
Not open for further replies.

abe6162

Programmer
Sep 7, 2004
24
US
I want to make a login screen to my Access application using the windows username and password.

I know I can retrieve the user name by ..
Environ$("UserName")

Is there a way to retrieve the windows password, just for verification?

Is this even possible to do this with a Access VBA application?
 
Think about it. If it were possible to retrieve a network password with code, any programmer could steal anyone's password, couldn't they? That wouldn't be very secure.

Reconsider your objective. The user has already logged onto Windows using his password, so you can assume that the current user has already been authenticated. There is no need to have him log on separately to Access if you're basing security on his network logon. In other words, you already know he has the password, so there's no need to ask for it.

Unless, of course, you need to re-authenticate him because he's using a shared computer on a factory floor or something like that. But in that case, you shouldn't be using the network user name, because it could be anybody.

Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein
 
Thank you. I appreciate you help. I understand what you mean about retrieving the password from the network.

This was a request from the user. They didn't want to remeber any new passwords.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top