Open document line acting strange

J

Jen

Hello. I am running a mail merge from Access 97 into Word
97, and using the following code in Access to open my mail
merge document. Some computers here are on Windows 2000,
while others are on Windows NT. The code works fine on
the NT computers, while on the 2000 computers it doesn't
assign the document to WordDoc. Here's the code:

Set WordDoc = WordApp.Documents.Open(strDocName)

Could anyone explain this?
Thanks in advance,
Jen
 
J

Jonathan West

Hi Jen,

There are differences in default folder locations between Windows NT4 and
Win 2K. Are you sure that strDocName is pointing to a file in the correct
place on the Win2K machines?

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

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