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

Re: Open document line acting strange by Jonathan

Jonathan
Mon Sep 15 13:34:59 CDT 2003

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

"Jen" <jkroberts@earthlink.net> wrote in message
news:347d01c37ba1$28dc6770$a501280a@phx.gbl...
> 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
>
>