In a sub form I don't want any records to be physically deleted to maintain data integrity (foreign key) therefore I have a field "deleted" (boolean) in the subfrom.
In the "on delete" of the subform, I set the "deleted" field to yes, and docmd cancel Event, to stop the record being deleted...