Cannot retrieve full user name....

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
How did you specify the DC? Did you remember to include the two slashes for
the server?

What OS are you trying this on?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top