![]() |
|
#1
|
|||
|
|||
![]() How can I introduce a line break (^l) or paragraph mark (^p) in this field if the answer is Yes, ie, there is an Address3 { IF { MERGFIELD Address3 }<> “”” { MREGEFIELD Address3 } “” } I cannot find a way of avoiding a blank line if there is a blank field in a record. |
#2
|
||||
|
||||
![]()
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Thanks Paul but I don't see how I can do what I want with that.
What I am after is: within an 'IF' statement I need to include a paragraph mark if TRUE in order to put the next part of te address on the next line but I dont want a paragraph mark if the field is FALSE (blank). So, I should like the lines to look something like this: { MERGFIELD Address1 }{ IF { MERGFIELD Address2 }<> “” { ^p MREGEFIELD Address2 } “” }{ IF { MERGFIELD Address3 }<> “” { ^p MREGEFIELD Address3 } “” }{ IF { MERGFIELD Address4 }<> “” { ^p MREGEFIELD Address4 } “” }{ IF { MERGFIELD Postcode }<> “” { ^p MREGEFIELD Postcode } “” } |
#4
|
||||
|
||||
![]()
Hi camlab,
With the mergefield switches, you don't need an IF test. The switches simply tell Word what to do if the field is not empty. If you tell it to insert a new line, and place that mergefield on the same line as the one before/after (depending on which switch you use), then the line you're concerned about is only created if the field is not empty.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
sedain121 | Mail Merge | 2 | 10-04-2011 07:52 PM |
![]() |
Nexus | Mail Merge | 12 | 04-13-2011 11:34 PM |
paragaph hard break, soft break and ...strange break | czomberzdaniela | Word | 2 | 12-03-2010 06:58 PM |
Mail Merging more than 1 line of data ?? | Keith24249 | Mail Merge | 0 | 10-16-2009 06:36 AM |
![]() |
Anthony | Outlook | 1 | 09-29-2009 06:09 PM |