Full Username from NT??

GregSmith

Registered User.
Local time
Today, 17:05
Joined
Feb 22, 2002
Messages
126
Has anyone been able to get the full username yet??

I have searched the board and found messages where people attempted it but none have found the answer...

Thanks in advance
 
Define 'full username' please...

Search the archives for the function fOSUserName for a way to get the NT logon from pre-Win2k computers. For Win2k and later, you should be able to use the Environ("UserName") function from within Access.

If I've misunderstood the question, please post back.
 
Goto this Link:
http://www.mvps.org/vbnet/

Search for "Obtaining a Network User's Full Name and Comments"

You are going to be getting into API's, but the code is usable in VBA.


Have fun!!;)
 
Run-time error 453

Not working for me. I am getting the error message "Run-time error 453, can't find DLL entry point NetUserGetInfo in netapi32."

Using Windows 98, I tried this in Access 97 and Visual Basic 6.0 with the same error. I am guessing that the error means that my DLL does not have the netapi32 in it. How can I get this to work for this would be a great addition for my applications. But I would need it to also work on my users PC (Windows 95/98/XP).

Thanks in advance for your help!
 
I've only tested this on Windows NT and Windows 2000.
 

Users who are viewing this thread

Back
Top Bottom