Solved Form After Delete Running after selecting No

dgreen

Member
Local time
Today, 16:32
Joined
Sep 30, 2018
Messages
397
What would cause my code to trigger the Form_AfterDelConfirm when I select NO on the popup confirming if I want to delete these records.

Visual of the subform and button (red circle) being pushed.
1585779109161.png


Here's the a snipit showing where the code goes to immediately after the NO selection.

1585779221573.png

I am able to stop the action with my click selections, but I would rather that the code not even run since I said no on the earlier selection.
 
because it is after the delete confirm popup has closed - the status tells you whether the record(s) are deleted or aborted - see this link


so you need to modify your code depending on status
 
Hi. As CJ said, the event fired because it was supposed to. But, whatever happens when it does is up to you.
 
Modified the code with the select statement and removed the warnings setting. Something new.
1585780469077.png
 

Users who are viewing this thread

Back
Top Bottom