ButtonALastRun = Now
But this won't work if your form is not bound to a table. Bind your form with the table you created, with the 4 fields. For testing purposes, show them on the form... later you can hide them if you want.
There will always be just one record with 4 fields, and each time ButtonA runs, set the AButtonLastRun date field to Now. The same for each of the other buttons, using 4 separate procedures... one for each button You just keep updating the same 4 values over and over.
For Button A...
' Turn Warnings back ON
DoCmd.SetWarnings True
' Close Status Meter
Call acbCloseMeter
ButtonALastRun = Now
AddressConversionScrub_Exit:
Exit Function
AddressConversionScrub_Err:
MsgBox Error$
Resume AddressConversionScrub_Exit
End Sub
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
OK, I've decided to go about this a different way.
What is the syntax I would add to the end of this stored procedure below to update TBL.COL "Actions.Button1LastRun" with the Time and Date Stamp of the procedure completing?
OK, I've created the TBL, but I already have an OnClick event, and that is to call the macro that calls the procedure.
So how do I code it to do 2 things. Or more aptly, after the procedure completes, is the Date and Time I want.
My procedure ends with the following lines:
' Turn Warnings back ON
DoCmd.SetWarnings True
' Close Status Meter
Call acbCloseMeter
AddressConversionScrub_Exit:
Exit Function
AddressConversionScrub_Err:
MsgBox Error$
Resume AddressConversionScrub_Exit
End Function
So where in the above would I add the instruction set?
Hank