I was creating one object for all the exports. I thought this would be more efficient, but I guess not. I changed the logic to create an object for each export.
Thanks for the help,
Jim
>What version of Word are you using? Are you creating and releasing the oWord object each time you export? I know with Excel2000 I'm having certain problems in my routine that I didn't have with Excel97.
>
>>I have a screen with a grid that lists several reports. One of the other options on the screen is to export a report to MS WORD. If I click on one of the export buttons the report is created and it works great. If I click on a second export button I get an error that says OLE error code 0x800706ba: The RPC server is unavailable. The error occurrs on the following line of code
>>oWord.FileOpen(sys(5) + sys(2003) + "\docs\lbehind.doc").
>>
>>HELP!!! What is wrong????
>>
>>Jim
Thanks
Jim