Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
I am trying to figure out how to use an and statement with the mergefields.
if {MERGEFIELD TEST} = "nc" AND {MERGEFIELD TEST1} = "chg" {includetext .....} " "} but it's not working. how do you do this. |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi ibmm,
One way: {IF{MERGEFIELD TEST}= "nc" {IF{MERGEFIELD TEST1}= "chg" {INCLUDETEXT ....}}} Another way: {SET String "{ MERGEFIELD TEST }{ MERGEFIELD TEST1 }"}{IF{REF String}= "ncchg" {INCLUDETEXT ....}} And yet another way: {IF{IF{MERGEFIELD TEST}= "nc" 1 0}+{IF{MERGEFIELD TEST1}= "chg" 1 0}= 2 {INCLUDETEXT ....}} -- Cheers macropod [Microsoft MVP - Word] "ibmm" wrote in message ... I am trying to figure out how to use an and statement with the mergefields. if {MERGEFIELD TEST} = "nc" AND {MERGEFIELD TEST1} = "chg" {includetext ....} " "} but it's not working. how do you do this. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mail merge question If Statements | Microsoft Word Help | |||
Mail Merge if... then statements | Mailmerge | |||
How can I write IF statements in Mail Merge | Mailmerge | |||
Mail Merge If Statements (Word 02) | Mailmerge | |||
Using Hyperlinks in Mail Merge IF...THEN...ELSE Statements | Mailmerge |