How do I conditionally merge based on a data value?

W

wayneb

I would like to create invoices and use mail merge to fill in items that have
not been paid. If an item has been paid, there will be a specific value in
the field.

An example would be homeowners fee. If paid, the field will have 100. If it
is not paid, I want to print a line requesting payment.

Thank you.
 
D

Doug Robbins - Word MVP

Use an If...then...Else... field construction

{ IF { MERGEFIELD Fee } <> 100 "Please pay up" "" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and Alt+F9
to hid their display.

I suspect that there might be more to what you are doing than just this and
that you are probably trying to perform a "multiple items per condition
(=key field)" mailmerge which Word does not really have the ability to do:

See the "Group Multiple items for a single condition" item on fellow MVP
Cindy Meister's website at:

http://homepage.swissonline.ch/cindymeister/mergfaq1.htm#DBPic

Or take a look at the following Knowledge Base Article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;211303

http://www.knowhow.com/Guides/CompoundMerges/CompoundMerge.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top