C
Chrisso
Hi All
I have a form that adds records to a table. On Form_Load I run the
following code to make sure that the user is always entering a new
record at the end:
DoCmd.GoToRecord , , acNewRec
On my form I have an "OK" and a "Cancel" button. If the user is happy
with all the data they enter then they click "OK" and the data is
added as a new record - no problem.
I also want to be able to cancel the record altogether if they hit
"Cancel". How do I achieve this? In this case I want to back out the
data record the user was working on before they clicked "Cancel".
Thanks in advance,
Chrisso
I have a form that adds records to a table. On Form_Load I run the
following code to make sure that the user is always entering a new
record at the end:
DoCmd.GoToRecord , , acNewRec
On my form I have an "OK" and a "Cancel" button. If the user is happy
with all the data they enter then they click "OK" and the data is
added as a new record - no problem.
I also want to be able to cancel the record altogether if they hit
"Cancel". How do I achieve this? In this case I want to back out the
data record the user was working on before they clicked "Cancel".
Thanks in advance,
Chrisso