Save action

  • Thread starter Thread starter dimpie
  • Start date Start date
D

dimpie

I have a data entry form which is coonected to a table for data entry to that
table. I have 2 buttons on the form "Save" and "Exit"

On clicking "Save" button, the record gets saved, but on clicking "Exit"
button, i dont want the record displayed to be saved. How do i aviod saving
this record??


Please help..
 
dimpie said:
I have a data entry form which is coonected to a table for data entry to
that
table. I have 2 buttons on the form "Save" and "Exit"

On clicking "Save" button, the record gets saved, but on clicking "Exit"
button, i dont want the record displayed to be saved. How do i aviod
saving
this record??


Please help..

In the form's "Exit" procedure, include the line:

Me.Undo

before the line that closes the form.
 
dimpie said:
I have a data entry form which is coonected to a table for data entry to that
table. I have 2 buttons on the form "Save" and "Exit"

On clicking "Save" button, the record gets saved, but on clicking "Exit"
button, i dont want the record displayed to be saved. How do i aviod saving
this record??


The button's Click event procedure can use:

Me.Undo

to clear any data changes pn the current record.
 
Back
Top