Read Environment Variable? v2003

oneilldm

Registered User.
Local time
Yesterday, 22:27
Joined
Dec 10, 2008
Messages
19
Is there a way to read in a system Environment Variable?

If I go to a command prompt and type "SET" the system will display all my Environment Variables. For convenience, I'd like to identify the User.

Thanks
 
Thank you... that's perfect!!!

This is the best Access help forum I've seen!

Thanks to all the contributors!
 
You can also use:

Code:
Function GetWinUserName()
    GetWinUserName = VBA.Environ("UserName")
End Function
 
Simon
 

Users who are viewing this thread

Back
Top Bottom