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

Returning a user ID

Status
Not open for further replies.

stomp

Technical User
Sep 4, 2002
5
US
Can anyone help i am looking for a way to return the user ID as a security measure.
 
The CurrentUser function will return the user name of the user.

This only does something for you if you've set up security, though.

 
GDGarth is right - the CurrentUser is only of use if you have secured the database.

But if you haven't secured it (and don't intend to) then you could get the NT login name using built-in Environ function.

e.g. Environ("UserName")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top