Cannot retrieve full user name....

W

WestSide

I need to display the fulll user name when a specific form is opened since we
lock a table and my users are not competent enough to go find the workstation
when the wks name is displayed, and since everyone is admin in access that
doesnt help.
I have provided the login id, but these are not straightforward as to who
the person actually is.

I implemented the code at: http://www.mvps.org/access/api/api0066.htm

but the value returned from apiNetUserGetInfo is never ERROR_SUCCESS (i get
123 or 2211)

I checked the code and it is pulling the dc for the wks which is not the dc
for the users, so I changed the code so the dc is always the users dc and
doesn't bother to do any lookups for the domain.
 
D

Douglas J. Steele

How did you specify the DC? Did you remember to include the two slashes for
the server?

What OS are you trying this on?
 
Top