View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Greg
 
Posts: n/a
Default Mail Merge Problem

We have a software that generates a merge document based on an SQL
statement that pulls information out of a database and puts it into a
text file. The merge document looks at the text file data source that
the software puts out and then merges the appropriate data into the
appropriate spot. Simple stuff and works fine.

Now we add in some Word Fields as well. So we have data going into the
document 2 ways now.

Something of importance here is that we have Outlook set to use Word as
the default email editor.

On Word 2002 SP3 if I try and generate the document after the Word
Fields are in, I get a "Run time 509. The MailMergeToDoc command is
not available because the document is not a mail merge main document."

But on different versions of word - the document generates fine. Even
Word 2002 as long as its not SP3.

On the Word 2002 SP3 computer I then go and turn off Word as Outlooks
default email editor, and I can then re-run the merge document and
everything is fine.

My question is should a Merge document be able to have data coming from
a text file data source and some Word fields and work fine while
Outlook is running with word as the default editor?

Hope that makes sense.