The code below is not working for me. I have checked if the record is dirty at the time i click, it returns true. I want to close the form without saving, so that the changes undo.
Code:Private Sub cmdClose_Click() Debug.Print Me.Dirty DoCmd.Close acForm, Me.Name, acSaveNo End Sub