I have add the codes below to my form.  When I click the save button the pop to confirm saving comes up, but when I click yes it does not save the data on the form to my table.  What am I doing wrong?
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Not blnSave Then
        Cancel = True
        Me.Undo
        blnSave = False
     End If
       
End Sub
Private Sub save_Click()
blnSave = MsgBox("Are you sure you want to save this record?", vbQuestion + vbYesNo, "Save Confirmation")
I would really appreciate any help you can give me