I have a similar situation where I want the user to confirm whether to save the changes and use the BeforeUpdate form to ask the user if they want to save the changes. This seems to work very well, at least in my case.
Private Sub Form_BeforeUpdate(Cancel As Integer) If MsgBox("Do you want to save changes?", vbYesNo, "Confirm change") = vbNo Then Cancel = True Else 'Do Nothing End If End Sub
source share