How can I delete (or cancel) the form's current record when Me.NewRecord is true?
Using DoCmd.RunCommand acCmdDeleteRecord throws error #2046 (The command or action 'DeleteRecord' is not available now.)
I tried Me.Undo, but that does not delete (or cancel) the record.
I need to do this from code, as the user requires both "Create New Record" and "Delete Current Record" buttons.
Using DoCmd.RunCommand acCmdDeleteRecord throws error #2046 (The command or action 'DeleteRecord' is not available now.)
I tried Me.Undo, but that does not delete (or cancel) the record.
I need to do this from code, as the user requires both "Create New Record" and "Delete Current Record" buttons.