Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Multiple fields in an IF statement
Is it possible to have multiple fields print when an If statement is
processed? {IF {MERGEFIELD DGCOLD2}="" " " {MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2} } This only prints the first filed. Do I have condition each field? Or is there an easier way? |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Multiple fields in an IF statement
Hi Mary,
Yes, you can and you nearly had it working. Try: {IF {MERGEFIELD DGCOLD2} "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"} or {IF {MERGEFIELD DGCOLD2}= "" "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"} -- Cheers macropod [MVP - Microsoft Word] "Mary" wrote in message ... Is it possible to have multiple fields print when an If statement is processed? {IF {MERGEFIELD DGCOLD2}="" " " {MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2} } This only prints the first filed. Do I have condition each field? Or is there an easier way? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
if statement with multiple and | Mailmerge | |||
Possible BUG: Multiple HTTPrequests send from one includetext statement | Mailmerge | |||
Multiple If... Then Statement in Word 2003 | Mailmerge | |||
Multiple "or" in "If Statement" | Mailmerge | |||
IF Statement using multiple Expressions with Bolean | Mailmerge |