View Single Post
  #1  
Old April 2nd, 2010, 07:31 PM posted to microsoft.public.word.mailmerge.fields
UCHelp
external usenet poster
 
Posts: 1
Default Carriage Return Help

Hello. I am using a format that imports data through XML Word Documents.

The format is {entity.attribute}

for example
{contact.fullname}
{contact.company}
{contact.address1}
{contact.address2}

My problem is, if the contact doesn't have an address 2 line, it will merge
an unwanted carriage return.

How can I make sure this doesn't happen by checking if the line is empty and
thus not putting a carriage return? Many contacts dont have address line 2s,
but some do.