PDA

View Full Version : Solved: When Application.UserName is blank ...



MWE
01-25-2007, 11:21 AM
I am helping a small company with a few office automation issues. When I have wanted to control who gets to do certain things in the past, I used Application.Username and compared it to a list of user name privledges. Unfortunately this company has decided that all applications will be loaded with no username (makes it easier to move systems around). So, that method is out.

How do I fetch the logon username?

Thanks

Bob Phillips
01-25-2007, 11:29 AM
Use


Environ("UserName")


it gets the logon name, they have to have one of those.

MWE
01-25-2007, 08:46 PM
Use


Environ("UserName")

it gets the logon name, they have to have one of those.Thanks, that works well.