my add was functioning properly when after sometime, it started to have this error. it says
"This Event was cancelled by an associated object"


i dont know what triggered this but i tried to search for it and i think i have not put somthing on my code to make this error happen.

here is my code:
On Error GoTo adderr
Data1.Recordset.AddNew
save.Enabled = True
cmdsave.Enabled = True
txtln.SetFocus
Exit Sub
adderr:
MsgBox Err.Description

^ ^ i can see nothing wrong with it.

can you share me the possibilities which may have caused the error?

this also comes out when i move to another record.

what could be wrong?

thank you. please be patient with me. i am just starting with vB.
thanks!