WineSnob
Not Bright but TENACIOUS
- Local time
- Yesterday, 21:00
- Joined
- Aug 9, 2010
- Messages
- 211
I have a form I would like to close without saving the record using a button. here is the code I have but it closes the form and it also writes the record to the table.
I found in a thread that Cancel = True would not write the record.
What am I missing?
Thanks.
Code:
Private Sub ClosewoSave_Click()
Cancel = True
Me.Undo
DoCmd.close
DoCmd.OpenForm "frmMenu"
End Sub
What am I missing?
Thanks.