Access current user id

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

Guest

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!
 
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
 
Back
Top