D
Dave
Our group all log on to Windows XP Pro with their User Name and Password.
How do I retrieve the User's name from within Access 2003.
How do I retrieve the User's name from within Access 2003.
Jon Ley said:Dave,
I use the following:
Environ("Username")
If you need the domain as well then
Environ("UserDomain") & "\" & Environ("Username")
Hope this helps - probably easier than an API call, although I'm sure
there are reasons why an API call is more elegant/robust.
Dave said:Thanks Jon
Environ("Username") is great.
The API call corrupted my database big time.
I am not able to delete the new module or import the database to
another file.