Event DataSource.BeforeDelete (gb.db.form)

Event BeforeDelete ( Keys As Variant[] )

This event is raised before deleting a record.

Keys is an array of the values taken by the the primary key that identifies the record that is to be deleted.

You can abort the deletion by stopping the event.