dbTalk Databases Forums  

Access 97 and Mail Merge to Word 2003

comp.databases.ms-access comp.databases.ms-access


Discuss Access 97 and Mail Merge to Word 2003 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gina
 
Posts: n/a

Default Access 97 and Mail Merge to Word 2003 - 08-18-2011 , 07:59 AM






I am launching a mail merge process from within Access 97, using the
following code on a form button onclick event (both the database and
the mail merge template reside on the networked Q drive).

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc",
1)

I get an error message from Word along the lines "Word experienced an
error trying to open the file. Try these suggestions; Check the file
permission for the document or drive etc etc."

When I put the Word mail merge template on my local C:drive, with the
following line of code:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:
\VolunteerCardTemplate.doc", 1)
everything works fine.

Do I really have to place the template on the local drive - is there a
way I can make it work with the template stored on the network drive?

Gina

Reply With Quote
  #2  
Old   
Douglas J Steele
 
Posts: n/a

Default Re: Access 97 and Mail Merge to Word 2003 - 08-18-2011 , 07:59 PM






No, you don't need to put the template on the local drive, but you do need
to account for the spaces in the path

Try:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE ""Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc""",
1)

"Gina" wrote in message
news:6a3236f3-8900-49dd-8b8c-7dadcadb9105 (AT) c29g2000yqd (DOT) googlegroups.com...

I am launching a mail merge process from within Access 97, using the
following code on a form button onclick event (both the database and
the mail merge template reside on the networked Q drive).

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc",
1)

I get an error message from Word along the lines "Word experienced an
error trying to open the file. Try these suggestions; Check the file
permission for the document or drive etc etc."

When I put the Word mail merge template on my local C:drive, with the
following line of code:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:
\VolunteerCardTemplate.doc", 1)
everything works fine.

Do I really have to place the template on the local drive - is there a
way I can make it work with the template stored on the network drive?

Gina

Reply With Quote
  #3  
Old   
Gina
 
Posts: n/a

Default Re: Access 97 and Mail Merge to Word 2003 - 08-19-2011 , 04:33 AM



On Aug 19, 1:59*am, "Douglas J Steele"
<NOSPAM_djsteele (AT) NOSPAM_gmail (DOT) com> wrote:
Quote:
No, you don't need to put the template on the local drive, but you do need
to account for the spaces in the path

Try:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE ""Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc""",
1)

"Gina" *wrote in message

news:6a3236f3-8900-49dd-8b8c-7dadcadb9105 (AT) c29g2000yqd (DOT) googlegroups.com...

I am launching a mail merge process from within Access 97, using the
following code on a form button onclick event (both the database and
the mail merge template reside on the networked Q drive).

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc",
1)

I get an error message from Word along the lines "Word experienced an
error trying to open the file. *Try these suggestions; Check the file
permission for the document or drive etc etc."

When I put the Word mail merge template on my local C:drive, with the
following line of code:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:
\VolunteerCardTemplate.doc", 1)
everything works fine.

Do I really have to place the template on the local drive - is there a
way I can make it work with the template stored on the network drive?

Gina
Thanks Doug,

I'll give that a try when I get back to the office next week.

Gina

Reply With Quote
  #4  
Old   
Gina
 
Posts: n/a

Default Re: Access 97 and Mail Merge to Word 2003 - 08-24-2011 , 06:55 AM



On Aug 19, 10:33*am, Gina <gors... (AT) hotmail (DOT) com> wrote:
Quote:
On Aug 19, 1:59*am, "Douglas J Steele"





NOSPAM_djsteele (AT) NOSPAM_gmail (DOT) com> wrote:
No, you don't need to put the template on the local drive, but you do need
to account for the spaces in the path

Try:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE ""Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc""",
1)

"Gina" *wrote in message

news:6a3236f3-8900-49dd-8b8c-7dadcadb9105 (AT) c29g2000yqd (DOT) googlegroups.com....

I am launching a mail merge process from within Access 97, using the
following code on a form button onclick event (both the database and
the mail merge template reside on the networked Q drive).

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE Q:
\Databases\Volunteers\14 v0.2g Production\VolunteerCardTemplate.doc",
1)

I get an error message from Word along the lines "Word experienced an
error trying to open the file. *Try these suggestions; Check the file
permission for the document or drive etc etc."

When I put the Word mail merge template on my local C:drive, with the
following line of code:

x = Shell("C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE C:
\VolunteerCardTemplate.doc", 1)
everything works fine.

Do I really have to place the template on the local drive - is there a
way I can make it work with the template stored on the network drive?

Gina

Thanks Doug,

I'll give that a try when I get back to the office next week.

Gina- Hide quoted text -

- Show quoted text -
Works a treat. Many thanks again.

Gina

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.