Merge field punctuation

C

Candace

Is there any way to display punctuation after a merge field depending on
whether or not there is any data in that field? For instance, I have a
sentence that includes an Address1 field and an Address 2 field. I have a
comma between the two address fields. If some of the records that merge do
not contain a second address, I don't need the comma that prints after the
first address. Is this possible with Word 2003?
 
D

Doug Robbins - Word MVP

Use an If...then...Else... field

{ IF { MERGEFIELD Address2 } <> "" ", { MERGEFIELD Address2 }" "" }

You must use Ctrl+F9 to insert each pair of field delimiters. Put this
field construction immediately after your Address1 mergefield and note that
there is a space after the comma.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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