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

Force a users name with a cmd button

Status
Not open for further replies.

tarena

IS-IT--Management
Nov 28, 2005
70
0
0
US
I am using access 97. I have a form with a command button on it that when I click it the current system date is forced into one field and the current system time is forced into another field. Can I make if force the current user name of the user who is logged into the computer at the time of clicking the button? If so, how?

Thanks
Tarena
 
You may use Environ("USERNAME")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top