User Logon Name or ID (1 Viewer)

gpetrona

New member
Local time
Today, 15:22
Joined
Aug 3, 2001
Messages
4
How can you get the user's logon name or ID?
 

KenHigg

Registered User
Local time
Today, 10:22
Joined
Jun 9, 2004
Messages
13,327
Can you uset the 'CurrentUser' procedure?

Example:

MsgBox("The current user is: " & CurrentUser)
 

ghudson

Registered User.
Local time
Today, 10:22
Joined
Jun 8, 2002
Messages
6,195
Searching the forum is a great way to discover and learn the answers to your Access programming questions.

Why not use the Environ() funtion?!?

It tastes great and it is less filling.

Code:
MsgBox "Network Name = " & Environ("username")
MsgBox "Computer Name = " & Environ("computername")
Search the forum for the keyword ENVIRON and my user name for I have a sample db posted somewhere that will list all of the Environ variables.
 

Users who are viewing this thread

Top Bottom