Albert,
I suspect that you are not actually releasing the form when you're finished with it, but rather just hiding it. Therefore the second time, things aren't being initialized the way you think they are. You should check _screen.formcount or the _screen.forms collection after you're done with the second modal form to see if it's really gone.
>Hello Marcia
>
>Yes !! This is the standard in all my forms since 3-4 years.
>at init: thisform.l_cursor = "orderrecords"
>
>all search buttons do:
>Thisform.grid1.recordsource = " "
>l_sql = "select ........ "
>sqlexec(connection,l_sql,(thisform.l_cursor))
>Thisform.grid1.recordsource = (thisform.l_cursor)
>
>Until now there were no problems!!!
>This is my first try with VFP 8.0
>I'll try your suggestion, but changing all my forms would be endless work.
>
>Thank you
>Albert