Connecting Tech Pros Worldwide Help | Site Map

Environ("username") / Dev Ashish's "fOSUserName" function return '#Name?' on some clients

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 10th, 2007, 10:03 PM
max.vit@gmail.com
Guest
 
Posts: n/a
Default Environ("username") / Dev Ashish's "fOSUserName" function return '#Name?' on some clients

I am trying to retrieve the user name (network login) of clients
running a local Access DB. We use Access 2000 / 2003 and Windows XP SP
2.

I have used 2 different ways to access this information from within
Access:
OPTION 1: Use Environ("username")
OPTION 2: Use Dev Ashish's code (http://www.mvps.org/access/api/
api0008.htm)

Both options seem to behave exactly the same for me.

But this is my problem:
On some clients I correctly retrieve the network login name and on
some other clients I retrieve '#Name?'.
On ALL clients though, if you you open command prompt and execute
'echo %username%' you get the correct answer - even on the clients
that I get the '#Name?' answer.
I suspect I have some missing reference somewhere in the clients that
can't display the username correctly but I don't know how to go about
it.

Any assistance is appreciated.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.