Lorraine,
I tried some of the BeforeUpdate event things, but did not have a lot of
success. I then tried the following:
Assuming that the "OriginalValue" is a variant type variable, then try:
Place the assignment of the current value to the variable to the On Enter
event of the control:
Private Sub TypeID_Enter(Cancel As Integer)
OriginalValue = TypeID.OldValue
end sub
The in the After Update event of the control:
Private Sub TypeID_AfterUpdate()
If Me.TypeID.Text <> OrignialValue Then
RetVal = MsgBox("Want to do this?", vbYesNo)
If RetVal = vbNo Then
'Cancel = True
'Me.TypeID.Undo
Me.TypeID = OrignialValue
End If
End If
End Sub
This worked for me.

Signature
HTH
Mr B
> When the value in textbox TypeID is updated I want there to be a Warning
> through a message box. If the user clicks the "No" button I want there to be
[quoted text clipped - 28 lines]
>
> Help me please.
Lorraine - 07 Apr 2006 21:54 GMT
Mr B,
I had to modify your code a bit by
#1 Omitting the "Cancel as Integer" argument in the TypeID_Enter Sub
Procedure.
#2 Needed to declare the variable "OriginalValue" as an Integer in the
module level so that the variable could be read between the TypeID_Enter and
the TypeID_AfterUpdate procedures.
It works beautifully now.
Thanks!

Signature
Lorraine
> Lorraine,
>
[quoted text clipped - 55 lines]
> >
> > Help me please.