Closing a form without saving

dirkvw

Registered User.
Local time
Today, 23:25
Joined
Oct 11, 2013
Messages
15
Hello,
I have a form to add a record to a table. How can I give the user a way to close this form without saving the just created record.

I tried

If me.dirty then
DoCmd.RunCommand acCmdDeleteRecord
endif

This works, but gives a messagebox in return to confirm the command, and I don't want that. And I try to avoid sendkeys. I also don't want to change the options of access.

TIA
Dirk
 
Try
DoCmd.RunCommand acCmdUndo
or
Me.Undo
 
Thanks jdraw, that's what i needed. (but didn't find!)
 

Users who are viewing this thread

Back
Top Bottom