Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Can I toggle the field codes so that instead of basic operators it does
"contains". I am trying to do if address contains and then "members" else "a member" |
#2
![]()
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
![]()
Hi Jennifer
Word string testing capabilities with fields are almost non-existent. You can test whether a string starts or ends with a particular charcter sequence - and even have a defined number of charactres before or after that sequence - but beyond that, testing anything other than numeric data, dates & times is a lost cause. You can certainly have a conditional output for the "a member" and "members" part: {IF{MERGEFIELD MyField}= "MyValue" "a member" "members"} A 'starts with' equivalent would be: {IF{MERGEFIELD MyField}= "MyValue*" "a member" "members"} and an 'ends with' equivalent would be: {IF{MERGEFIELD MyField}= "*MyValue" "a member" "members"} -- Cheers macropod [Microsoft MVP - Word] "JenniferK" wrote in message ... Can I toggle the field codes so that instead of basic operators it does "contains". I am trying to do if address contains and then "members" else "a member" |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Mail Merge from excel "-" instead of number zero and "()" for neg | Mailmerge | |||
"remove blank lines"+"Mail Merge" | Mailmerge | |||
Mail Merge "Ask" Rule | Mailmerge | |||
Can a Rule include an "or" statement? (Word 2003) | Microsoft Word Help | |||
"mail merge" disappeared from "tools" menu | Mailmerge |