Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ENVIRON("USERNAME")

Status
Not open for further replies.

stat123

Technical User
Jul 19, 2004
10
CA
I have a form that picks the networks username using - environ("username"); the problem is that every time a user changes towers (they get a new computer; their profile is also copied over to the new machine), instead of their username, the form will not pick up their username, instead, all they get is - #Name?

Any clues?
 
That's one of the pitfalls of relying on environment variables. They may not always be set. I would suggest that you take a look at the GetUserName API which should always be available to you.

Good Luck
--------------
To get the most from your Tek-Tips experience, please read FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top