If as you said Your code is in LostFocus Event of txtNEstimateNo:
*** Lost Focus** Check for validation * And if not valid
msgAction = MessageBox("...")
IF msgAction == 4&&"RETRY"NODEFAULTthis.SetFocus()
RETURN .f.
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller The only thing normal about database guys is their tables.