>Hi all,
>
>I have this code in a valid event from a textbox
>
>select artigos
>if empty(this.value)
>do form search_listbox
>this.value=artigos.c_codigo
>thisform.refresh()
>endif
>
>when it run's, it open's the second form and go back, but if i have in in a button it works ok, show the form and i do my selections, then i close the form and go back.
>
>Is there a way to stop the form when it shows up in valid event?
>
>
>Thanks' in Advance
>
>João batista
Joâo,
Make the called form modal :
do form serach_listbox to myRetVal && It could return a value in unload event
But better you do that from lostfocus not valid :
if empty(this.value)
nodefault
else
endif
Cetin