Set up a field of type TimeStamp to record the date and time the button was Clicked. Define a text field to record the user's name. If you want to create a log of such data you can put these fields in a related table.
In the script you assign to the button, include these two steps:
Set Field [YourTable::TimeStampField; Get ( CurrentTimeStamp) ]
Set Field [YourTable::TextField; Get ( AccountName)]
Set Field [YourTable::TextField; Get ( UserName ) ]
Get ( AccountName ) returns the account name used to log into the database.
Get ( UserName ) returns the UserName set in Preferences
Thank you, It works great!