You can also have the search form be a form class. Instantiate it with CREATEOBJECT. The "close" button on that form does a THISFORM.HIDE. Then in the code that called it, you can say "oForm.SomeValue" then "release oForm". SO it's
oForm = CREATEOBJECT("YourSearchFormClass")
oForm.Show(1)
SrchVal = oForm.SrchVal
release oForm
Not tested. Your mileage may vary.
>I put this "thisform.oCallerForm.RefreshFromOutside()" in exit commandbutton, but same result.
>Unknown member "Unknown member oCallerForm". Is it oCallerForm or oCallingForm?
>
>Saif