Section 9. Creating Custom Merges with Word Fields

The simple mail merges you've learned about so far insert data by referencing fields in the specified data source. Nine times out of ten, that's all you need for a mail merge. But wouldn't it be nice for that tenth time to be able to do something a little more complex?

Suppose you are creating a letter to all your customers, but you want the letter to say different things depending on the values in certain fields of your database. For example, perhaps you want customers who have not ordered from you in more than six months to receive a special promotional offer. Or perhaps you want to be able to enter a different promotional offer each time you run the merge and be prompted to enter the offer ...

Get Mail and Data Merges Using Word 2007 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.