View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Conditional formatting of text

Hi ibbm,

If the only possibilities are '1' and '2':
{IF{MERGEFIELD Motion}= 1 "Text message 1" "Text message 2"}

If neither '1' nor '2' is a possibility:
{IF{MERGEFIELD Motion}= 1 "Text message 1"}{IF{MERGEFIELD Motion}= 2 "Text message 2"}
or
{IF{MERGEFIELD Motion}= 1 "Text message 1" {IF{MERGEFIELD Motion}= 2 "Text message 2"}}

--
Cheers
macropod
[Microsoft MVP - Word]


"ibbm" wrote in message news
Hi, I am trying to do a merge document that prints different text based on a
Motion field. so i am doing

{IF{MERGEFIELD Motion} = 1 "Text message 1}
{IF {MERGEFIELD Motion} = 2 "Text message 2}

So when I run this if a record has a 1 for the motion i get "Text message 1"
but if it's a 2 I am getting both the Text message 1 and the 2. How can I
get it to only print the approriate text.

Thanks in advance.