I would never in a million years consider turning off "Confirm record changes" so I never noticed that.
Adding a button to the detail item isn't a bad solution but Dave was looking for some event on the main form that got triggered by action on the subform and that is not available, nor would it ever be since it implies violating normal forms.
I was just looking for an event. I didn't expect one on the main form, but I couldn't find one on the subform either. I couldn't find any way of signalling that a record delete had just taken place,
so do something. Once it had taken place, I need to re-process the entire order, As I say, the only way I could find was to treat the form
as if it were unbound, and manage the process steps with a button click.
Maybe the AfterDelConfirm would have worked. I thought the after delete confirm was still before the delete took place, but I have just read it carefully, and it seems to fire after the delete has taken place. I thought it fired after you had confirmed you wanted the delete to happen but before the delete took place.
Form.AfterDelConfirm event (Access) | Microsoft Docs
Hmm. I am using a SQL Server back end, and this part of that article says the delete has not yet happened with SQL Server (in the AfterDelConfirm.)
"If you confirm the deletion, Access opens a transaction on SQL Server, issues the DELETE statement to delete the record or records, and fires the form's
Delete event. If you choose
No when prompted to confirm the deletion, Access does not open a transaction on SQL Server to delete the record and does not fire the form's
Delete event."