G
Guest
On a form I have textboxes linked to a query (giving one record). Clicking a
button, I go to the emty record. Filling this in I create a new record.
When I push a button <cancel>, all has to be as before. I work this way: I
go to the first record to delete possible changes (overwrite with originals)
DoCmd.GoToRecord , , acFirst
Then: put old values back in cells (values stored in labels when opening
form).
PROBLEM:
when enterring values in empty record fields, a new record is made.
Cancelling has to undo this. Now the first record is set to original and a
record has been made if somebody filled it in.
QUESTION:
Filling in the empty record, I can go back to initial values using the
"ESCAPE" button. How can I program this so I can implement it in my
Cancel-button-code?
button, I go to the emty record. Filling this in I create a new record.
When I push a button <cancel>, all has to be as before. I work this way: I
go to the first record to delete possible changes (overwrite with originals)
DoCmd.GoToRecord , , acFirst
Then: put old values back in cells (values stored in labels when opening
form).
PROBLEM:
when enterring values in empty record fields, a new record is made.
Cancelling has to undo this. Now the first record is set to original and a
record has been made if somebody filled it in.
QUESTION:
Filling in the empty record, I can go back to initial values using the
"ESCAPE" button. How can I program this so I can implement it in my
Cancel-button-code?