G gpetrona New member Local time Today, 05:58 Joined Aug 3, 2001 Messages 4 Feb 7, 2006 #1 How can you get the user's logon name or ID?
KenHigg Registered User Local time Today, 00:58 Joined Jun 9, 2004 Messages 13,327 Feb 7, 2006 #2 Can you uset the 'CurrentUser' procedure? Example: MsgBox("The current user is: " & CurrentUser)
ghudson Registered User. Local time Today, 00:58 Joined Jun 8, 2002 Messages 6,194 Feb 8, 2006 #3 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.
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.