A couple things to check...
Is the report included in .. or excluded from .. the project? If it's excluded, be sure it's distributed with the EXE.
Are the tables defined in the Data Environment in the same relative path as when you were running in development mode?
Cathy
>I'm using VFP 7.0
>
>.....myCommandButton.click()
> local lc
> if somecondition
> lc = 'preview'
> else
> lc = 'to printer prompt'
> endif
> Report form myReport &lc
>
>This works fine in developement, but does nothing after I compile into exe.
>
>TIA