Icon OnInsertError Event

property OnInsertError: TErrorEvent


The OnInsertError event is fired whenever the engine encounters an error during the insertion of a record in a table. Assigning an event handler to this event allows you to retry, abort, or fail any insert operation on any record in any table.

Information You cannot modify the contents of the CurrentRecord parameter in this event. Also, this event is not triggered during any system processing such as Creating and Altering Tables or Optimizing Tables.