D
doyle60
I get an error when I hit a LookUp combo box (to navigate around the
form). It occurs on some new code I wrote in the BeforeUpdate event:
If IsNull(Me.DateSentOrigtxt) Then
Me.DateSentOrigtxt = Me.DateSentLast
End If
The error is this: Run-time Error '3020': Update or Canel update
without AddNew or Edit.
The Help says "On a Microsoft Jet database, you called the Update or
CancelUpdate method but didn't use the AddNew or Edit method before
writing data to a record."
I don't understand this.
The error does not occur if you go to the subform before hitting the
LookUp combo.
The code updates a field with data, as you can probably tell.
How do I get rid of this error?
Thanks,
Matt
form). It occurs on some new code I wrote in the BeforeUpdate event:
If IsNull(Me.DateSentOrigtxt) Then
Me.DateSentOrigtxt = Me.DateSentLast
End If
The error is this: Run-time Error '3020': Update or Canel update
without AddNew or Edit.
The Help says "On a Microsoft Jet database, you called the Update or
CancelUpdate method but didn't use the AddNew or Edit method before
writing data to a record."
I don't understand this.
The error does not occur if you go to the subform before hitting the
LookUp combo.
The code updates a field with data, as you can probably tell.
How do I get rid of this error?
Thanks,
Matt