Close form *without* saving

T

Tommy P

Hi! By default, Access saves the record that you're working on when yo
close the form. But is there any way of making a button that closes th
form *without* saving the record? I've written code to clear all th
fields and then close the form, but I just end up with a load of blan
records! Any help would be much appreciated
 
J

JL Picard

Hi Tommy,

Le mer, 28 jan 2004 at 18:04 GMT, Tommy a écrit:
Hi! By default, Access saves the record that you're working on when you
close the form. But is there any way of making a button that closes the
form *without* saving the record? I've written code to clear all the
fields and then close the form, but I just end up with a load of blank
records! Any help would be much appreciated.

You can use this code in the <Button>_Click() Event functon :
Me.Undo
DoCmd.Close
 

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