Results 1 to 5 of 5
  1. #1
    johnson8809 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    11

    Mail Merge issue

    Created a mail merge that writes to a word document. Intermittently, the program won't run because agetr the word document gets updated, the document isn't closing properly because the word.exe process continues to run and the program won't execute again. It's an intermittent problem, but is extremely untimely on some important reports. Can anyone clue me in?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    well...... off hand I don't know the code to close the word.exe process which probably needs to get fired each time before the word doc open code;.... another approach is to not open the Word doc from Access; instead pop up a message saying something along the lines of 'the data is ready, please open doc xyz'....while perhaps not elegant from the purist Access user perspective it would be simple and robust...the user opening the mail merge document from within Word, rather than via Access, would resolve the issue you are having I believe.....

  3. #3
    johnson8809 is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    11

    Thank you for responding

    Quote Originally Posted by NTC View Post
    well...... off hand I don't know the code to close the word.exe process which probably needs to get fired each time before the word doc open code;.... another approach is to not open the Word doc from Access; instead pop up a message saying something along the lines of 'the data is ready, please open doc xyz'....while perhaps not elegant from the purist Access user perspective it would be simple and robust...the user opening the mail merge document from within Word, rather than via Access, would resolve the issue you are having I believe.....

    That's an idea. I'll give that a shot. OI appreciate you takingthe time to answer. I'll at least let you know how I fare. "Hail to the legion of VBA'ers!!"
    Troy.

  4. #4
    darshit_goswami is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    29
    I guess the process to open word is not word.exe but should be winword.exe.. It should be easy to fire up winword.exe from vba.

  5. #5
    darshit_goswami is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2015
    Posts
    29

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Mail Merge
    By sakhtar in forum Access
    Replies: 8
    Last Post: 09-20-2020, 09:10 AM
  2. Mail Merge
    By zaffar_mughal in forum Access
    Replies: 1
    Last Post: 12-01-2013, 08:47 AM
  3. Help with Mail Merge please ?
    By bellevue in forum Forms
    Replies: 21
    Last Post: 02-16-2013, 07:05 AM
  4. Mail Merge
    By DCV0204 in forum Forms
    Replies: 6
    Last Post: 12-13-2011, 09:32 AM
  5. Mail Merge
    By Nixx1401 in forum Access
    Replies: 1
    Last Post: 02-15-2010, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums