Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find out the Current user

Status
Not open for further replies.

Geo45

Technical User
Jul 17, 2002
19
GB
I am using Win 2000 and Access 97

In the command prompt when you type in the command "set". It lists a couple of windows varibles, including the username

How can I access that in Access97 so I can tell who is logged in

IE. dave logs onto the computer starts up the database, the database shows a form that says "Hi Dave"
 
use the environ() function


Function getuser() As String
getuser = Environ("loginname")
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top