Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Ru4reele Ru4reele is offline
external usenet poster
 
Posts: 1
Default Mail Merge using two different data sources.

I need to merge a word document with an outside database source. Apparently
within the database are tables. It appears that the address is in one table,
and the customer email address and contact info is in another. Is there
anyway to specify to word to take information from certain fields from
different data sources, or does it all have to come from one source?


  #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 different data sources.

If your database is a "proper" database such as Access or SQL Server, then
there it is possible to write queries (in Access) or Views (in SQL Server)
that collect the data from several tables into a single "result" table, as
long as there is sufficient information to connect the pieces of data
together.

It's difficult to be specific without knowing what type of database you are
using and the exact tables and columns involved and how they are related,
but...

For example, if you have a database where each individual's main data is in
a table called person, and has a /unique identifier/ called personID, and
there is a separate table called address that stores each individual's
address, but which also has the same unique ID called personID, then you
would typically be able to use the language SQL to construct a query that
says

SELECT * FROM person, address WHERE person.personID = address.personID

That creates a third, "logical" table that you can use as the data source
for a merge.

It might be slightly more complicated, e.g. each person might have several
different address records, in which case the query might have to be
different.

Typically with a databse sch as this one, not everyone has permission to
create queries/viws within the database itself. If you don't you either have
to get someone else to create the query you need, or you can sometimes
create it in a thing called MS Query that comes as part of MS Office, or you
may be able to create it using Word VBA. But maybe you could find out a
little bit more about your database before we get into that? e.g. what type
of dtaabse is it, what permissions do you have to create queres or views,
what "data strcutures" are used to contain the data you need, and so on.

Peter Jamieson
"Ru4reele" wrote in message
...
I need to merge a word document with an outside database source. Apparently
within the database are tables. It appears that the address is in one
table,
and the customer email address and contact info is in another. Is there
anyway to specify to word to take information from certain fields from
different data sources, or does it all have to come from one source?




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge Data Question Tom Bean Mailmerge 7 May 26th 06 12:02 AM
Word 2000 mail merge documents won't save Access 2000 data source Andy C Mailmerge 1 May 17th 06 08:39 AM
Can you do a mail merge using multiple data sources? MatthewLong Mailmerge 1 November 14th 05 08:14 PM
Mail Merge Losing Data Scott May Mailmerge 1 November 1st 05 11:03 PM
data and header sources in mail merge cp Mailmerge 2 April 1st 05 06:03 PM


All times are GMT +1. The time now is 07:03 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"