[AccessD] Mail Merge Fails

Randall Anthony ranthony at wrsystems.com
Tue Jan 20 13:51:23 CST 2004


John,
Maybe it's too simple, but I use this line to close and also in the error
routine.  I also pass a parameter for the document name, but don't use it to
close.

WordObj.Documents.Application.Quit (wdDoNotSaveChanges)

-----Original Message-----
From: Colby, John [mailto:JColby at dispec.com] 
Sent: Tuesday, January 20, 2004 2:35 PM
To: Accessd (E-mail)
Subject: [AccessD] Mail Merge Fails

If a mail merge fails, it can leave an instance of word open and the doc
that word instance was using locked, i,e, it can't be deleted because the
doc is in use.  Obviously I can go in to the task manager, select the word
process (image name?) and "End Process".  Is there any way to do that
programatically?  Is there any way to "name" the word instance that my
program is opening so that I can go check to see if that instance is open?

Am I making this too complicated?  I'm not by any stretch a word mail merge
guru and this seems very unwieldy.

John W. Colby
The database guy

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


More information about the AccessD mailing list