M Marcello Lenci Jan 25, 2004 #1 How can I annull to add a new record after I wrote something in a field ? Thanks
E Ernie Scofield Jan 25, 2004 #2 Marcello, Would pressing the escape key do what you want or did I misunderstand? I could dig up some code I wrote for a cancel button if you need. Ernie Scofield
Marcello, Would pressing the escape key do what you want or did I misunderstand? I could dig up some code I wrote for a cancel button if you need. Ernie Scofield
M Marcello Lenci Jan 25, 2004 #3 Yes I would like the code for a cancel button to cancel the addition of a new record after I have just written some field. Thanks again
Yes I would like the code for a cancel button to cancel the addition of a new record after I have just written some field. Thanks again
E Ernie Scofield Jan 25, 2004 #4 Marcello, This cleans the form before closing it and is attached to a Cancel button... ----------------------------------------- Private Sub cmdCancel_Click() If Me.Dirty Then Me.Undo End If DoCmd.Close acForm, Me.Name, acSaveNo End Sub
Marcello, This cleans the form before closing it and is attached to a Cancel button... ----------------------------------------- Private Sub cmdCancel_Click() If Me.Dirty Then Me.Undo End If DoCmd.Close acForm, Me.Name, acSaveNo End Sub