Solved Form After Delete Running after selecting No (1 Viewer)

dgreen

Member
Local time
Today, 05:38
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.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 10:38
Joined
Feb 19, 2013
Messages
16,553
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
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:38
Joined
Oct 29, 2018
Messages
21,358
Hi. As CJ said, the event fired because it was supposed to. But, whatever happens when it does is up to you.
 

dgreen

Member
Local time
Today, 05:38
Joined
Sep 30, 2018
Messages
397
Modified the code with the select statement and removed the warnings setting. Something new.
1585780469077.png
 

Users who are viewing this thread

Top Bottom