If MsgBox("Do you want to save this record", vbQuestion + vbYesNo + vbDefaultButton2, "Save Record") = vbYes Then
Else
DoCmd.CancelEvent
End If
Above coding, i want change it Else condition ,i.e I click No button current record clear it . New record open it. If you dont mine, Its my first project in ms access so no idea.