Dear All
I'm using the following code(which is a part of full code) but this is not working.
Here the variable con is equalize with form field "Conb". I'm using this code on after update event of control "CONB". after this code execution the control jumps to next field but I want that if check is wrong then control should stay at CONB field.Code:If CD <> Right(con, 1) Then MsgBox " the check digit is " & CD MsgBox "Please Enter Correct Customer No" CONB.Undo Cancel = True End if
Thanks.
Wasim