O oneilldm Registered User. Local time Today, 12:27 Joined Dec 10, 2008 Messages 19 Dec 12, 2008 #1 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
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
pbaldy Wino Moderator Staff member Local time Today, 10:27 Joined Aug 30, 2003 Messages 36,157 Dec 12, 2008 #2 Look at the Environ() function, or: http://www.mvps.org/access/api/api0008.htm
O oneilldm Registered User. Local time Today, 12:27 Joined Dec 10, 2008 Messages 19 Dec 12, 2008 #3 Thank you... that's perfect!!! This is the best Access help forum I've seen! Thanks to all the contributors!
Thank you... that's perfect!!! This is the best Access help forum I've seen! Thanks to all the contributors!
S Simon_MT Registered User. Local time Today, 18:27 Joined Feb 26, 2007 Messages 2,170 Dec 14, 2008 #4 You can also use: Code: Function GetWinUserName() GetWinUserName = VBA.Environ("UserName") End Function Simon
You can also use: Code: Function GetWinUserName() GetWinUserName = VBA.Environ("UserName") End Function Simon