Access current user id

C

cindyn

Does anyone know the syntax to access the current user logged in via VB code?
I can't seem to find a reference to it. I know it should be really simple.

Thanks in advance!
 
J

Jeff Conrad

Does anyone know the syntax to access the current user logged in via VB code?
I can't seem to find a reference to it. I know it should be really simple.

If you have set up Access User Level Security you can use
CurrentUser() to return the currently logged on user.

If you are not using ULS you can capture the Network User
Name by using the code found here:

http://www.mvps.org/access/api/api0008.htm
 

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

Top