>From a command button on a form I prepare data, copy to TYPE FOX2X, open the RDC engine and then Thisform.CrViewer.ViewReport().
>
>When the CRViewer is closed, the form that called it is also closed.
>
>Instead I would like the calling form to regain focus so that user could select another report on another command button.
I don't have the code from my last job here, but generally there were few differences from what you do:
- didn't use the .CrViewer, used the report ActiveX (6.0)
- we minimized _screen before running the report, then restored it thereafter
- we didn't call the .ViewReport() but rather set it to print to screen (.destination=0 or something of the kind) and called .print or .printreport, don't remeber the syntax exactly.
HTH