Get Username from Windows NT

  • Thread starter Thread starter Mike Thomas
  • Start date Start date
M

Mike Thomas

We are beginning to implement security levels in an Access 2000 application.

When the user opens the app, we need to run a function which will return the
Windows login name of the person opening the app.

Running a function is not a problem, but what function / API call would be
available from a VBA module to retun the login name?

Many thanks
Mike Thomas
 
Just my 2 cents worth, but I'd never recommend using the environment
variable approach as it's too easy to reset environment variables. The API
solution is fairly trivial to implement, and is, in my opinion, the way to
go.
 

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