B
Beth
I have opened a Word doc, filled in the data from Access, and merged to new
document. I now want to close the original doc. I got the following from the
MSDN site:
Documents("Document1").Close SaveChanges:=wdDoNotSaveChanges
This only works once per run. If I open a second doc( i.e execute the
routine again), when it get to this line I get error message:
"The remote server machine does not exist or is unavailable"
******There is no remote server machine. I have one PC!!******
I have the entire path expressed in the filename (actually I tried both ways).
This is the case for all of my versions of Access and Word (2000,2002, and
2003).
I can't use app.activeDocument.close because it will not close the right doc
( my new merged doc Letters1 is the active doc.)
any suggestions?
Also I am using DDE. which seems to be somewhat unstable. Sometimes it works
and sometimes it prompts with several dialogs to define login,
connectivity....
ODBC seems to be alot more stable but does not support memos and dates.
any suggestions on either of these items would be most appreciated
Thanks,
Beth
document. I now want to close the original doc. I got the following from the
MSDN site:
Documents("Document1").Close SaveChanges:=wdDoNotSaveChanges
This only works once per run. If I open a second doc( i.e execute the
routine again), when it get to this line I get error message:
"The remote server machine does not exist or is unavailable"
******There is no remote server machine. I have one PC!!******
I have the entire path expressed in the filename (actually I tried both ways).
This is the case for all of my versions of Access and Word (2000,2002, and
2003).
I can't use app.activeDocument.close because it will not close the right doc
( my new merged doc Letters1 is the active doc.)
any suggestions?
Also I am using DDE. which seems to be somewhat unstable. Sometimes it works
and sometimes it prompts with several dialogs to define login,
connectivity....
ODBC seems to be alot more stable but does not support memos and dates.
any suggestions on either of these items would be most appreciated
Thanks,
Beth