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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Windows logged in username access97 2

Status
Not open for further replies.

DannyTmoov2

IS-IT--Management
Jan 7, 2003
49
GB
Is there any way to retrieve the username of the currently logged in windows user? I need to do acheive this on access 97 running on windows 2000

Cheers,
 
On windows2000 (and XP and NT and 2003) you may simply use this:
Environ("USERDOMAIN") & "\" & Environ("USERNAME")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Are there any other environment calls that could be of use? Do you have a link to a resource for this at all?

Thanks guys!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top