SELECT Clients lcOldOrder=ORDER() && or set('order') to save the current order SET ORDER TO CLIENTNUM IF SEEK(This.Value) *You found it ELSE *You didn't so display your message box ENDIF SET ORDER TO (lcOldOrder) &&Restore your orderTo be honest, I'm not sure if what your doing is a good method. If the user tabs to the TextBox and doesn't know any order number, there is no way to leave and the user is trapped. You should put your code in somplace other than the valid ( a search button or lostfocus, so the user can leave or return at will) or maybe another combobox with incremental search enabled?