>My users want to preview a report and have a different form open to compare the report output with information on the form. This seemed like a simple request, but I can't seem to make it happen. Report is called from a form (modeless) that allows user to put in date range and other info. Once they click Print button, results are returned to cursor and command is issued
>
REPORT FORM reportname.frx PREVIEW
>The preview comes up but no other menu or form is available. When I add NOWAIT to the command that fixes the form/menu problem, but when I try to go to the next page of the report the Open Table dialog comes up. The calling form still exists, but it's like the preview can't find the data anymore. Changing the datasession on the calling form doesn't make any difference.
>
>TIA
>
>John
Maybe I should be a little more explicit
DEFINE WINDOW TestWindow FROM 2,2 TO 30,30 IN SCREEN NAME objectname TITLE "Modeless Report Preview" DOUBLE GROW FLOAT
REPORT FORM TestReport PREVIEW IN WINDOW TestWindow NOWAIT
Insure the cursor/table being reported on exists inside the report's data environment.
Using the above method I attain a modeless report preview without the problems you've mentioned.