Accessing data

  • Thread starter Thread starter Shell
  • Start date Start date
S

Shell

When I navigate to Help about in any office product I get
This product is licensed to: gwashington

NOTE: gwashington is just an example.

When i use the API call in Access GetUserName, I get gwashington.

HOWEVER, When I do control+alt+delete (the task manager) I get

George Washington is logged on as DOMAIN\gwashington

In code how do I get George Washington?


Thanks
 
By using the environ method Dennis means implement it as follows:

environ("username")

hth
 
Doug,

I agree when you want to use this for authentication or logging. But for
just getting an username this one line does the trick. What I mean is why
implement all that code if just what you might need is the username.
 
But Environ("username") will return gwashington, the network ID, and Shell
wants the user's name George Washington.

As I stated, there isn't an environment variable that will give you the
user's actual name.
 
Back
Top