![]() |
|
#1
|
||||
|
||||
![]()
See: http://office.microsoft.com/en-us/wo...005186172.aspx
If using Windows, for such a case you might delete the paragraph break after Add_2 and add a \b switch to 'Add_3', thus: {MERGEFIELD Add_3 \b ¶} where the ¶ is an actual paragraph break. To add the switch, select the «Add_2» field and press Shift-F9 to expose its code. Press F9 again when you're done. If using a Mac, for such a case you might delete the paragraph break after Add_2 and code an IF field thus: {IF «Add_3» <> "" "¶«Add_3»} Note: The field brace pairs (ie '{ }') for the above examples are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message. Likewise, you can't type or copy & paste the chevrons (ie '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar. Instead of the ¶, you should use a real line/paragraph break.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
Hi,
I am essentially trying to do the same thing, but with an address field. I have been lurking on several forums trying to solve this issue, but all solutions don't work. In the address area of my forum I want to skip address 2 if the client does not have address 2 in their client record. The result ends up looking like this. <name> <address 1> <city, state, zip> When I want it to print like this if there is no address 2... <name> <address 1> <city, state, zip> My code is as follow which I believe mirrors your example... {MERGEFIELD NLADDRESS2 \b } I also tried the if statement... {IF NLADDRESS2 <> "" " NLADDRESS2} What am I doing wrong? |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
cgranada | Mail Merge | 6 | 02-27-2017 09:08 AM |
![]() |
ClaireAMAdams | Mail Merge | 5 | 04-30-2013 02:43 PM |
![]() |
Aude | Mail Merge | 1 | 01-06-2012 07:38 PM |
![]() |
keevitaja | Word | 1 | 05-23-2011 06:34 PM |
Suppress Dialog Box | crutch024 | Word | 0 | 08-17-2010 09:52 AM |