From where are you doing this? You cannot issue a SetFocus from within a Valid event. You can do it in the lostfocus event but you must issue a NODEFAULT to stop the default setfocus that VFP does after the lsotfocus event. You can also return 0 from the valid to retain focus in the current control.