Mergefield - carriage return

E

Eric

Hello,

I am trying to go to the next line based on a contidion on a mergefield.
I am assuming that it would look like { IF{ MERGEFIELD "Country" } = "" ""
CHR(13)}

Also how to you insert a mergefield based on a condition on another
mergefield?
again I am assuming that it would look like { IF{ MERGEFIELD "Field1" } = ""
"" { MERGEFIELD "Field2" }}


Thank you.

Eric
 
D

Doug Robbins - Word MVP

{ IF{ MERGEFIELD "Field1" } = "" <Enter>
"" { MERGEFIELD "Field2" }}

will always give you a blank line

Perhaps you really want

{ IF{ MERGEFIELD "Field1" } = "" "{ MERGEFIELD "Field2" }" "{ MERGEFIELD
"Field1" }<Enter>
{ MERGEFIELD "Field2" }" }

You must use Ctrl+F9 for each pair of field delimiters {}
--
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
 
E

Eric

Hi Doug,

I tried this: { IF{ MERGEFIELD "Country" } = "" "" <Enter>} but all it does
is write <Enter>...

What am I missing?


Thank you.

Eric
 
E

Eric

I got it ... Sorry I didn't realize that <Enter> meant pressing the Enter
key...

It's working now.

Thank you.

Eric
 

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