Home |
Search |
Today's Posts |
#1
|
|||
|
|||
IF MERGEFIELD is not working...
I am trying to use an if statement to put "and" between two fields as long
as the 2nd field is NOT BLANK. The first field is called firstname and the second field is called secondname. Word recommends I use the following code: { IF { MERGEFIELD secondname } "" "and" "" } After manipulating it about 100 different ways and having it still not work I'm completely frustrated. If there is anyone out there that has an idea of what I am doing wrong I would really appreciate the assistance. Thanks B |
#2
|
|||
|
|||
Field boundaries {} are inserted with CTRL+F9. The construction you want is
{Mergefield firstname} {IF {Mergefield Secondname} "" "and {Mergefield Secondname}"} What you posted should also have worked if you inserted the fields correctly. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Bart Paden wrote: I am trying to use an if statement to put "and" between two fields as long as the 2nd field is NOT BLANK. The first field is called firstname and the second field is called secondname. Word recommends I use the following code: { IF { MERGEFIELD secondname } "" "and" "" } After manipulating it about 100 different ways and having it still not work I'm completely frustrated. If there is anyone out there that has an idea of what I am doing wrong I would really appreciate the assistance. Thanks B |
#3
|
|||
|
|||
Graham
Thanks for the help. With a couple tweaks your suggestion worked brilliantly! Bart On 9/13/05 10:59 PM, in article , "Graham Mayor" wrote: Field boundaries {} are inserted with CTRL+F9. The construction you want is {Mergefield firstname} {IF {Mergefield Secondname} "" "and {Mergefield Secondname}"} What you posted should also have worked if you inserted the fields correctly. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IF field condition is not working | Mailmerge | |||
CPU Usage When Working with Templates you created | Microsoft Word Help | |||
Imbedded MERGEFIELD in IF/ELSE/THEN field | Mailmerge | |||
How do I do a conditional mail merge into a table | Mailmerge | |||
Math In Merge Field(s) | Mailmerge |