I want to conditionaly delete a record

Hi All,
I have a situation where I want to delete a record, if a condition is met.

In the onBeforeDelete event, I want to stop that delete if the condition is met.

What is the best way to do this?

Thanks
Tony

I guess you need to rollback, because the transaction already has started.
See
sc_rollback_trans(“Connection”)

1 Like

Thanks, sometimes you get too much going on in your head, and you can’t see the wood for the trees.
Tony

1 Like