Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
crun
 
Posts: n/a
Default Nested If statements in MS Word 2003 - Help!

I am trying to create a mail merge document that will insert text
depending on the value on a certain field. For instance, Program is
the merge field and,

if Program = Live #1, insert "123456"
if Program = Live #2, insert "456789"
Otherwise, insert "987654"

I've tried inserting the following in the document where I want the
data above to be returned:

{IF {MERGEFIELD Program} = "Live #1" "For 123456" "{IF {MERGEFIELD
Program} = "Live #2" "456789" "987654"} "}

However, when I complete the merge, the text above is displayed, rather
than a corresponding value...am I putting this formula in the wrong
place? Any suggestions?

Thanks!

  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
 
Posts: n/a
Default Nested If statements in MS Word 2003 - Help!

You have to use the special field braces that you can insert using ctrl-F9
for the {}. You can't just type them on the keyboard. You can type
everything else on the keyboard.

Peter Jamieson
"crun" wrote in message
ups.com...
I am trying to create a mail merge document that will insert text
depending on the value on a certain field. For instance, Program is
the merge field and,

if Program = Live #1, insert "123456"
if Program = Live #2, insert "456789"
Otherwise, insert "987654"

I've tried inserting the following in the document where I want the
data above to be returned:

{IF {MERGEFIELD Program} = "Live #1" "For 123456" "{IF {MERGEFIELD
Program} = "Live #2" "456789" "987654"} "}

However, when I complete the merge, the text above is displayed, rather
than a corresponding value...am I putting this formula in the wrong
place? Any suggestions?

Thanks!



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting WordPerfect 12 files to Word 2003 Curious New Users 4 May 19th 23 02:48 PM
How to put graphics on envelopes? Steve Koenig Microsoft Word Help 21 April 29th 23 02:47 AM
Word should allow to 'divide' page by 3 or 4, not just 2 CandasK Page Layout 2 February 28th 06 10:16 PM
Does Word have a QuickCorrect/Quick Word option like WordPerfect? CW New Users 2 December 20th 05 05:54 PM
Word 2002 and Word 2003 trading default file association Enochscion Microsoft Word Help 2 May 27th 05 10:19 PM


All times are GMT +1. The time now is 08:27 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"