Crookshanks
Technical User
Goodmorning,
I do not understand why the following messages appears:
"runtime error 462 -- The remote server does not exist or is unavailable."
My access application processes some letters using Word. The Word session is declared as follows
Dim appWord As New Word.Application 'Automation Object
Now I perform several tasks with the appWord object. Like writing to bookmarks, printing and saving. After that I close the document and application with:
appWord.ActiveDocument.close
appWord.Quit
Now when I try to rerun my procedure (for another letter) the error mentioned above occurs. When I ommit the 'appWord.quit' this does not occur, but now Word stays 'open' and I want it to close.
Anyone an idea why this is happening, is there a solution? Any help appreciated.
Kind regards,
I do not understand why the following messages appears:
"runtime error 462 -- The remote server does not exist or is unavailable."
My access application processes some letters using Word. The Word session is declared as follows
Dim appWord As New Word.Application 'Automation Object
Now I perform several tasks with the appWord object. Like writing to bookmarks, printing and saving. After that I close the document and application with:
appWord.ActiveDocument.close
appWord.Quit
Now when I try to rerun my procedure (for another letter) the error mentioned above occurs. When I ommit the 'appWord.quit' this does not occur, but now Word stays 'open' and I want it to close.
Anyone an idea why this is happening, is there a solution? Any help appreciated.
Kind regards,