#1
|
|||
|
|||
Word Merge Fields: IF
I am trying to create merge fields to show the correct terms on a Word contract.
{IF {TERM} = "1 Year" "one (1)" "{IF {TERM} = "3 Year" "three (3)" "{IF {TERM} = "5 Year" "five (5)" "}"}"} I keep getting this message when it merges: Error! Unknown op code for conditional Any suggestions? Thank you in advance. |
#2
|
||||
|
||||
Hi Merdeka,
As your post refers to merge fields, I've moved the thread to the mailmerge sub-forum. Although you can use an IF test for what you want, you can achieve the same result more simply, via a pair of fields coded as: {=«Term» \* CardText} ({=«Term» \# 0}) Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message. Likewise, you can't type or copy & paste the chevrons (ie '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conditional merge fields in mail merge | Aude | Mail Merge | 1 | 01-06-2012 07:38 PM |
Help with merge fields | Chris182 | Mail Merge | 3 | 12-04-2011 07:39 PM |
Mail Merge question: Using fields connected to a CSV file in Word 2007 | Mr_Luke | Mail Merge | 0 | 06-18-2010 10:11 AM |
How do I set up the fields in mail merge word 07 from my data base | mbcrabber | Mail Merge | 4 | 06-06-2010 01:25 PM |
Word not highlighting conditional Merge fields | Dunce | Mail Merge | 0 | 02-15-2010 05:44 AM |