If...Then

M

Micah

I am using two very simple If...Then...Else statements to add information
into a document when information is in the database and no action when it is
empty and then move on to the next paragraph. When there is informaiton in
the field the everything works well. How do I create a blank line when there
is no information?
 
P

Peter Jamieson

Is this a "Letter" merge, a "Catalog" (or "Directory") Merge, or something
else?

Which version of Word?

Can you show us what IF fields (and other fields) you are using - just the
ones that seem relevant to this part of the document?

By default, Word removes lines that contain nothing but blank fields, but
its rules for doing it are a bit odd. For example if you have

line a
{ MERGEFIELD lineb }
line c

and field "lineb" is blank, the output should be

line a
line c

If you have
line a
{ IF "{ MERGEFIELD lineb }" = "" "" "{ MERGEFIELD lineb }" }
line c

then if lineb is blank you will get

line a

line c

or if lineb is not blank you will get

line a
<value of line b>
line c

If you have
line a
{ IF "{ MERGEFIELD lineb }" = "" "" "{ MERGEFIELD lineb }" }{ MERGEFIELD
lined }
line c

and both lineb and lined are blank, you will get

line a
line c


in other words, Word will only suppress the blank line if it contains
non-nested fields that are blank.

(there's more, but that should be enough for you to get your merge to work)

Peter Jamieson
 

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