Save action

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..
 
S

Stuart McCall

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.
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top