View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default mail merge using two data sources

Mail Merge is only designed to use a single data source.

What to do if you have more than one depends at least in part on
a. what the relationship between the two data sources is, and what you are
trying to produce (e.g. are you doing a "one-to-many" merge where one data
source has one record (such as "Customer") and the other has multiple
records for that Customer? Or do your two data sources each have one record
per Customer (or whatever)? Or maybe you have a main data source and you
need to pull in a couple of items from somewhere else, in which case
http://tips.pjmsn.me.uk/t0004.htm might help)
b. what the data sources are, and the options available for joining them
together. e.g. you can do some stuff with Excel workbooks and tables using
the Access/Jet driver/provider and some SQL. Or you can write code to turn
your two data sources into a single data source. Or you can do the same
thing manually before mergeing.
c. whether you can use Word VBA and Word's Mailmerge events to do what you
need.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Nathan" wrote in message
...
How can i insert data from two different Excel files into the same mail
merge
word document?