Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Mary[_3_] Mary[_3_] is offline
external usenet poster
 
Posts: 1
Default Multiple fields in an IF statement

Is it possible to have multiple fields print when an If statement is
processed?

{IF {MERGEFIELD DGCOLD2}="" " " {MERGEFIELD DGCOLD2} {MERGEFIELD
PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}
}

This only prints the first filed. Do I have condition each field? Or
is there an easier way?
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Multiple fields in an IF statement

Hi Mary,

Yes, you can and you nearly had it working. Try:
{IF {MERGEFIELD DGCOLD2} "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"}
or
{IF {MERGEFIELD DGCOLD2}= "" "" "{MERGEFIELD DGCOLD2} {MERGEFIELD PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}"}

--
Cheers
macropod
[MVP - Microsoft Word]


"Mary" wrote in message ...
Is it possible to have multiple fields print when an If statement is
processed?

{IF {MERGEFIELD DGCOLD2}="" " " {MERGEFIELD DGCOLD2} {MERGEFIELD
PYEAR2} {MERGEFIELD DGDEGD2} {MERGEFIELD DGMAJD2}
}

This only prints the first filed. Do I have condition each field? Or
is there an easier way?

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
if statement with multiple and Charles Mailmerge 2 April 14th 06 04:02 AM
Possible BUG: Multiple HTTPrequests send from one includetext statement Oliver Mailmerge 2 April 18th 05 09:46 AM
Multiple If... Then Statement in Word 2003 Sue Hargrave Mailmerge 1 February 26th 05 10:48 PM
Multiple "or" in "If Statement" WordUser Mailmerge 2 February 4th 05 02:02 PM
IF Statement using multiple Expressions with Bolean Viperpurple Mailmerge 3 December 19th 04 02:33 PM


All times are GMT +1. The time now is 06:44 PM.

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"