I have dissabled the auto save function of my form, to prevent accidental editing by using:-
The problem now is that when i use my command "Save" button it also brings up the message box asking if i want to save or not. Is there a way to get my "Save" button to bypass this function and just save the changes?
Regards
Eric
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If MsgBox("Changes have been made to the form. Are you sure you want to save the changes ?", vbYesNo) <> vbYes Then
Cancel = True
Me.Undo
Exit Sub
End If
End Sub
Regards
Eric
Comment