When developing your Excel or Access application, it’s not uncommon to need to capture your user’s domain/username for one reason or another. A user’s domain/username combination is the traditional unique identifier for a user - often captured by programmers to do things in like:
-
Help manage user login and permissions
-
Create a history of who used the application
-
Capture the name of each user who made the changes to data
-
Personalize outputs and program messages for users
.
There are literally half a dozen ways to capture a user’s domain name and user name. In this post, I’ll give you a very easy method using the Environ function.

