Problems on opening / closing and reopening word

G

Gina

Hi.

I send some records from access to word

Set WD = CreateObject("Word.Document")
template = CurrentProject.Path & "\Invoice.dot"

Set DC = Word.Documents.Add(template , , , True)

I Set DC = Nothing and later WD.Close & Set WD = Nothing

all works fine .

But if I want to print in background, word is set to visible false, printOut
and close
If I want to do the same job the second time, I get the answer that the
remote server computer doesn't exist or isn't available (Runtime Error: 462)
I just work on a standalone pc

Thanks for any idea
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