You can get the >encrypted< password by opening the current workgroup file,
and selecting the [password] (sp?) field from the msysobjects record where
[user] (sp?) = currentuser(). Takes a few lines of code in the the running
database.
Naturally you can't then use that password to log on as that user. (It's the
encrypted version, not the plaintext one.) But you can use it for other
purposes; eg. to see if he has changed it since "last time", thus enforcing
a password expiration scheme; or to see if he has set it to his forname (for
example); or if he has copied someone else's password, etc.
Cheers,
TC
Not that I'm aware of ... I don't think even Admin users can get another
users password (although they can clear passwords).
What are you trying to accomplish? Perhaps someone has ideas ...
From code, is it possible to get the current users
password?
I need the ability to rerun Access 2000 and automatically
login the user. I know how to run Access from the
command line and I know how to get the current username.