R
Randy
I found this code from an access website. It's supposed to give a warning
only if there is a change to a previously entered record. It does work,
except it also warns when a new record is entered. I dont want it to warn
on a new record. Ive tried this code in the before update, on change etc,
but cant get it to do what I want...Any ideas? Thanks
Private Sub CboAppID_Change()
If MsgBox("Changes have been made to the Applicant ID" _
& vbCrLf & "Do you want to save these changes?" _
, vbYesNo, "Changes Made...") = vbYes Then
DoCmd.Save
Else
DoCmd.RunCommand acCmdUndo
End If
End Sub
only if there is a change to a previously entered record. It does work,
except it also warns when a new record is entered. I dont want it to warn
on a new record. Ive tried this code in the before update, on change etc,
but cant get it to do what I want...Any ideas? Thanks
Private Sub CboAppID_Change()
If MsgBox("Changes have been made to the Applicant ID" _
& vbCrLf & "Do you want to save these changes?" _
, vbYesNo, "Changes Made...") = vbYes Then
DoCmd.Save
Else
DoCmd.RunCommand acCmdUndo
End If
End Sub