I’m playing around with Access VBA which I find a little esoteric at the moment. I have placed a command button on a form without using the wizard and I wish it’s click event to delete the current record.
I have the following line of code in the on click event:
RunCommand acCmdDeleteRecord
On clicking the button, it begins the delete process and asks me if I wish to proceed. When clicking the “No” option, an error message appears saying that the RunCommand action has been canceled and I can choose to debug or end.
What do I need ti include to prevent this from happening?
TIA