I'm using Access to open a Word Document using:
HTML Code:
Set WdDoc = AppWd.Documents.open(....
to open a word document which works fine on the first time it is opened but if the document is closed and the code is re-ran it gives the following error:

"Run-time error '462'
"The remote server machine does not exist or is unavailable"

I believe the problem is that Access still thinks Word is open because the object still exists.

I've tried wdDoc.Close and Set AppWd to nothing but that causes problems trying to run it again.

What does work is to catch the error and when the debug window pops up click "end" or "reset" the code run. Any ideas on how to fix this problem?