Remote server computer problem

G

Gina

Hi.

This is driving me crazy ... have posted before but maybe I wasn't clear in
my description as I havn't got an answer
her's my problem
I send some records from access to bookmarks in word
herefore I use
_________________________________________
Set WD = CreateObject("Word.Document")
template = CurrentProject.Path & "\Invoice.dot"
Set DC = Word.Documents.Add(template)
_________________________________________

all works fine .as long as I do only close the actual document in the
upcoming word where my invoice shows up and not the whole word application.
when I close the whole application the next time around when I want to open
word I get an error in the following line
_______________________________________
--> Set DC = Word.Documents.Add(template)
_______________________________________
I get a (Runtime Error: 462) message telling that the
'remote-server-computer doesn't exist or isn't available'

I can press 'Stop' or 'Finish' or 'Debug' (sorry, translated from a German
Version)
If I press 'Debug' the above line --> is highlighted
If I press 'Stop' and use my tool to access word again it works fine.

I have a sub which is called each time after records are sent to word
containing
__________________________________________
Set DC = GetObject(Word.ActiveDocument)
Set DC = Nothing
Set WD = Nothing
__________________________________________

Please anyone an idea of what this could be??
Gina
 
T

Tim Ferguson

_______________________________________
--> Set DC = Word.Documents.Add(template)
_______________________________________
I get a (Runtime Error: 462) message telling that the
'remote-server-computer doesn't exist or isn't available'

I guess you did not get a reply because this is not an Access problem,
but a Word/OLE one. You may have better luck looking in m.p.word.vba.*
groups.
Date: Wed, 9 Mar 2005 11:41:12 +0100
Date: Wed, 9 Mar 2005 17:20:36 +0100

Furthermore, bear in mind that people here are all volunteers and have
real jobs to do, families to go home to, and lives to lead (really!).
Demanding a response within six hours might be interpreted as a little
(ahem) discourteous.

All the best


Tim F
 
J

John Nurick

See my answer to your earlier question. I think you're making some
errors in your assumptions about how Word behaves.
 
G

Gina

Thanks John.
answer to your answer in different group ' topic: From Access To Word'

that's the problem .... sorry I am new to this office stuff
Gina
 
J

John Nurick

It's really confusing when people start multiple threads in different
groups about the same problem.

Thanks John.
answer to your answer in different group ' topic: From Access To Word'

that's the problem .... sorry I am new to this office stuff
Gina
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top