Guys and Gals,
I want to add an event procedure to a feild in a from so that if the data is changed a yes/no system message appears asking the user if they are sure they want to change the data in the feild.
If they click yes the change is accepted if they click no the feild reverts to back to its original data.
I have used this code and I get the system message OK but if I click "No" the data remains changed and does not revert back to the original value.
Could someone poit me in the right direction?
Thanks
JohnG
I want to add an event procedure to a feild in a from so that if the data is changed a yes/no system message appears asking the user if they are sure they want to change the data in the feild.
If they click yes the change is accepted if they click no the feild reverts to back to its original data.
I have used this code and I get the system message OK but if I click "No" the data remains changed and does not revert back to the original value.
Code:
Private Sub Pack_Number_AfterUpdate()
If MsgBox("Are you sure you want to CHANGE this Number?", vbQuestion + vbYesNo, "System Message") = vbNo Then Exit Sub
Could someone poit me in the right direction?
Thanks
JohnG