>Pierre,
>
>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.
Pierre,
Jim is right. Do some thing like:
ex: Dans le Valid du text box.
if THISFORM.seekprod(this.value,"cbo1", "tmprecette1")
return .t.
else
return .f.
endif