MontgomeryPete
Instructor
I am attempting to update a field when a checkbox is checked. I am using Office 2007 and VBA. This seems like such a simple subroutine, but when I run this code:
Private Sub TimeDispatched_BeforeUpdate(Cancel As Integer)
If Me.Dispatched= True, Me.TimeDispatched=time()
Else Me.Dispached=False, Me.TimeDispatched=Null
Endif
End Sub
The field [TimeDispatched] is not updated.
Any thoughts? Thanks, in advance for your help.
Private Sub TimeDispatched_BeforeUpdate(Cancel As Integer)
If Me.Dispatched= True, Me.TimeDispatched=time()
Else Me.Dispached=False, Me.TimeDispatched=Null
Endif
End Sub
The field [TimeDispatched] is not updated.
Any thoughts? Thanks, in advance for your help.