Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2005

Tip: Looking for answers? Try searching our database.

Win 2k:  Multiple Datasources, one document  

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 22 Mar 2005 20:34 GMT
Is this possible?  I'm trying to create a mail merge in Word 2000 that
looks like this:

Dear <fields from mail merge source>

bla bla bla

<multi-row table generated from data relating to mail merge source>

Bla bla bla

Is this even possible or am I going to have to create this on with a
programming language on my web server?

An expedient answer is very much welcomed.  As I'm going to have to
report on the feasibility of this by the end of the day.
Chris Weber
Peter Jamieson - 22 Mar 2005 23:28 GMT
Word isn't designed to do this. Some approaches are described at

http://homepage.swissonline.ch/cindymeister/

Look for Mail Merge FAQ, Special Merges, Multiple items per condition.
However, be aware that you have little control over the layout when you use
a DATABASE field.

As long as you are using Word 2002/2003 you can consider using Mail Merge
events to insert the multi-row table. If you do this, you should probably
use a table with one record per letter as the mail merge data source, and
access the multi-row data using e.g. ADO from within the VBA event-handling
routines. You will at least need to have a way to count how many rows are
needed for each letter without trying to use the MailMErge.DataSource object
to move through the records. However, once you have gone that far, you might
decide it is easier to "roll your own" merge and avoid using Word Mailmerge
altogether.

Peter Jamieson

> Is this possible?  I'm trying to create a mail merge in Word 2000 that
> looks like this:
[quoted text clipped - 13 lines]
> on the feasibility of this by the end of the day.
> Chris Weber
Chris - 23 Mar 2005 00:35 GMT
Yes, it is possible, check this reference out:
http://www.knowhow.com/Guides/CompoundMerges/CompoundMerge.htm

After a bit of work on the database form field I have this:

Dear <<fname>> <<lname>>:

Bla bla bla

{DATABASE  \c "DATABASE=incentive_sites;DESCRIPTION=bla
DB;DSN=Incentives;OPTION=0;PWD=password_goes_here;PORT=0;SERVER=siteroot;UID=admin_username"
\s "SELECT stuff  FROM DB WHERE hrid = '{MERGEFIELD hrid}' ORDER BY
hrid" \h}

Bla bla bla

The end product is slow to generate but very nice.

> Is this possible?  I'm trying to create a mail merge in Word 2000 that
> looks like this:
[quoted text clipped - 13 lines]
> report on the feasibility of this by the end of the day.
> Chris Weber
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.