I would like to have a popup message box that warns the user that data has been changed and they must verify the change or cancel the if the change was in error. This is the code I have:
Private Sub LastName_BeforeUpdate(Cancel As Integer)
If MsgBox("Last Name has been changed, is this change correct ?", vbYesNo) = vbNo Then
[highlight #FCE94F]Me!LastName.Undo[/highlight]
End If
End Sub
The VB editor window highlights "Me!LastName.Undo
What could be wrong with code?
Thanks for your help!
Private Sub LastName_BeforeUpdate(Cancel As Integer)
If MsgBox("Last Name has been changed, is this change correct ?", vbYesNo) = vbNo Then
[highlight #FCE94F]Me!LastName.Undo[/highlight]
End If
End Sub
The VB editor window highlights "Me!LastName.Undo
What could be wrong with code?
Thanks for your help!