In that case, unless there is some other code that is interfering, I don't
know. I even checked to see what would happen if you were at a new, unsaved
record. But the code and toolbar button both deleted the new, unsaved
record. No error was generated.
Just to verify, the button is on the SAME form, not a subform or parent form
of the form that has the record you're trying to delete.

Signature
Wayne Morgan
MS Access MVP
> Hi Wayne,
> Yes, it is on Click event and button is on the same form