O.k, I'm sorry to ask such a blatant question as this, but the following code will not execute in my access database (2003), and it seems so pitifully simple, yet will not work. Could someone kindly straighten me out. Thanks!
Private Sub DateCompleted_AfterUpdate()
If Me Is Null Then Completed = 0
End If
Completed = -1
End Sub
Scenario: after a user updates the DateCompleted field, I want the Completed check box to be updated. If the DateCompleted field was changed to a blank field due to a correction, the checkbox should be cleared. If an existing date is changed or one is added for the first time, checkbox should be checked.
Private Sub DateCompleted_AfterUpdate()
If Me Is Null Then Completed = 0
End If
Completed = -1
End Sub
Scenario: after a user updates the DateCompleted field, I want the Completed check box to be updated. If the DateCompleted field was changed to a blank field due to a correction, the checkbox should be cleared. If an existing date is changed or one is added for the first time, checkbox should be checked.