Blank Merge Field

S

Squid

I have a mail merge for addresses:
Name
Address1
Address2
City, State, Zip

How do I make City, State Zip become immediately
underneathe Address1, if Address2 is blank?

Usually my mail merge documents do that, but for some
reason its not happening with this document.

TIA
Mike
 
G

Graham Mayor

You can do it with a conditional field - use CTRL+F9 to set each pair of
field boundaries and insert the field information by hand.

{Mergefield Name}
{Mergefield Address1}{If {Mergefield Address2} <> "" "
{Mergefield Address2}"}
{Mergefield City} etc

ie if Address2 is not empty, insert a line break foillowed by the content of
the field.
The line break is inserted in the field result.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top