B
Bill H.
On a form, I have several required fields. I use the if/else construct to
test the required fields to see if data has been entered, and run this as a
BeforeUpdate event.
I also have a delete record button on the form (DoCmd.RunCommand
acCmdDeleteRecord). If, part way through data entry, they decide to delete
the record, when the docmd is run, it also causes the beforeupdate event to
fire, and gives the user those messages about the required fields. After
dismissing the message boxes, then the record is deleted.
How do I cancel the update so that the DeleteRecord command can run
unfettered? I also need to be able to run the DeleteRecord button on
records that have been entered in the past and thus have all their required
fields filled in.
Thanks.
test the required fields to see if data has been entered, and run this as a
BeforeUpdate event.
I also have a delete record button on the form (DoCmd.RunCommand
acCmdDeleteRecord). If, part way through data entry, they decide to delete
the record, when the docmd is run, it also causes the beforeupdate event to
fire, and gives the user those messages about the required fields. After
dismissing the message boxes, then the record is deleted.
How do I cancel the update so that the DeleteRecord command can run
unfettered? I also need to be able to run the DeleteRecord button on
records that have been entered in the past and thus have all their required
fields filled in.
Thanks.