I have a lastname field that can easily be erased accidentily. so i need to put a piece of code in there that will bring up a msg box that will ask them weather they relly want to change the last name. The code i have so far just brings up a message box but i need it to restore the last name if they do not wish to change it or i need it to go back and allow them to change it. here is what i have so far.
Private Sub LastName_Change()
Dim Answer As Integer
Answer = MsgBox("Do you wish to change this candidates Last Name?",
vbQuestion + vbYesNo, "Question")
If answer= VbYes Then
Else
End If
End Sub
any ideas????
Private Sub LastName_Change()
Dim Answer As Integer
Answer = MsgBox("Do you wish to change this candidates Last Name?",
vbQuestion + vbYesNo, "Question")
If answer= VbYes Then
Else
End If
End Sub
any ideas????