I have a form that works just fine, however I need to add a 'delete record' command button.
Now, the delete record bit works just fine, and the next line in the code is to close the form - again, this works, however when I then look at the table after the form has closed, the record has been deleted and then a new record has been created. I believe that this is as a result of the On Current events on the form, which are there to save certain items to the table when the form is opened or altered.
Is there a way to delete a record, and then force the closure of the form without allowing the form to become current once more?
Now, the delete record bit works just fine, and the next line in the code is to close the form - again, this works, however when I then look at the table after the form has closed, the record has been deleted and then a new record has been created. I believe that this is as a result of the On Current events on the form, which are there to save certain items to the table when the form is opened or altered.
Is there a way to delete a record, and then force the closure of the form without allowing the form to become current once more?
[SOLVED] Delete record problem
0 commentaires:
Enregistrer un commentaire