I created a dialog form with two command buttons: Ok and Cancel. When I click OK, it closes the dialog box. When I click Cancel, it does nothing. I want the Cancel button to work like the Esc button—that is, undo any changes made or close the form without saving the changes.
On Click Event I entered: DoCmd.CancelEvent. This code is not doing anything.
What’s the correct way to do this?
On Click Event I entered: DoCmd.CancelEvent. This code is not doing anything.
What’s the correct way to do this?