mailmerge ends prematurely w/o error



I have Word VBA code that basically:

opens a main doc
for each *.txt
opens it as a datasource
mailmerges it
saves it
Adobe ConvertToPDF
closes it
next

Sometimes, the mailmerge ends prematurely without merging all the records. No indication at all of any problem. These are 500-record datasources, the first record being the header info.

What really bothers me is that sometimes it works, sometimes it doesn't. Sometimes it'll do this on smaller datasource files too. It occurs on the mailmerge, not the ConverToPDF, sometimes on the first datasource.

Anyone experienced this? I'll be happy to supply more details if you want.

Word 2000, Windows XP SP2. Also reproduced with Word 2003.
.



Relevant Pages

  • Re: 2003 Cant NOT Populate Doc w/Data in Merge
    ... The problem is when I click No, the document opens ... populates the document with the first record. ... The merge toolbar is all gray except for the Main Doc Setup & Open ... Datasource buttons, which doesn't actually open the Datasource but the ...
    (microsoft.public.word.mailmerge.fields)
  • Re: mailmerge ends prematurely w/o error
    ... opens it as a datasource ... the first record being the header info. ... Sometimes it'll do this on smaller datasource files too. ... It occurs on the mailmerge, not the ConverToPDF, sometimes on the first datasource. ...
    (microsoft.public.word.vba.general)
  • More Mailmerge Problems
    ... a simple setup procedure ensured that certain datasource ... On initiating the mailmerge, I received a message indicating that a SQL ... Then I received a message that the datasource file could not be found. ... As indicated in 1 above, the final document included unwanted records so ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Unable to copy data source to another PC
    ... Did you actually copy the datasource to the other PC? ... directory type mailmerge for which you insert the mergefields in the cells ... > non-mdb file, the database isn't recognized. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: how so i imerge info from a datasource into table
    ... create a completely new mailmerge, ... merge from the datasource. ... create a header row by selecting row 1 and copying/pasting it, ... replacing the copied data by the table column headers you want. ...
    (microsoft.public.word.mailmerge.fields)