I am attempting to create a message box function to make sure that when a last name is changed, it is really the desired action. My syntax is below.
Private Sub ProviderLName_C hange()
Dim bytReply As Byte
MsgBox "You have changed the LAST NAME for this provider." & vbCr & "Is this correct?", vbYesNo, "DATA CHANGE DETECTED"
If bytReply = 7 Then
Forms!frmProvid erMainDataEntry !ProviderLName. Undo
Else
End If
End Sub
Upon testing, I changed the name. The message box appears. However, it does not undo the change. Can anyone tell me what I have done wrong?
Private Sub ProviderLName_C hange()
Dim bytReply As Byte
MsgBox "You have changed the LAST NAME for this provider." & vbCr & "Is this correct?", vbYesNo, "DATA CHANGE DETECTED"
If bytReply = 7 Then
Forms!frmProvid erMainDataEntry !ProviderLName. Undo
Else
End If
End Sub
Upon testing, I changed the name. The message box appears. However, it does not undo the change. Can anyone tell me what I have done wrong?
Comment