MontgomeryPete
Instructor
I have a checkbox on a form that is used to indicate that an item has been dispatched. We want to update a field in a table with the time when the box is checked. I have the code in an event session "On Click."
Private Sub Form_Click()
Update Ride, TimeDispatched
SET TimeDispatched =
IIf
([Ride].[Dispatched]= -1,
[Ride.TimeDispatched] = Time()
End Sub
The code fails, and would appreciate some help on how to execute this subroutine.
Thanks, Pete
Private Sub Form_Click()
Update Ride, TimeDispatched
SET TimeDispatched =
IIf
([Ride].[Dispatched]= -1,
[Ride.TimeDispatched] = Time()
End Sub
The code fails, and would appreciate some help on how to execute this subroutine.
Thanks, Pete