>>
>>You should use REPORT ... NOWAIT
>
>ED,
> We tried using REPORT ... NOWAIT with some success, but with the NOWAIT clause causes the rest of the code to run as if the report has been closed. This causes our cursors to be closed and in turn you cannot get to the second page of the report when the arrow is clicked on the toolbar. Also in some cases we use modal forms to call the report and when the code continues to run the form is closed allowing menu options to become available along with other problems. If you have any other ideas, they would be greatly appreciated. Thanks for the help Ed.
>
>Regards,
>John
So, you should change your code and don't try to close cursors in the same snippet. Normally, it's enough to clean-up all form's related cursors in Form.Destroy event. Also, it's not necessarily to close modal form in the same snippet, but if you want you can add timer checking for existence of preview window and if it's gone closing the form.
Edward Pikman
Independent Consultant