"Update or cancelupdate with edit or new" Error

Neimad

Registered User.
Local time
Today, 09:32
Joined
Jul 11, 2007
Messages
19
I keep getting this error appear.

"Update or CancelUpdate without AddNew or Edit"

I sometimes get this when trying to use a combo(dropdown box) to select another record. I have found no examples of what causes it, it seems to be random but it always kicks in quite early. It relates to this code:

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.Last_Update = Date

End Sub​

Which should put in the date when ever the record is updated into the last_updated field.

Any ideas :confused:
 

Users who are viewing this thread

Back
Top Bottom