Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2008

Tip: Looking for answers? Try searching our database.

Mergefield - carriage return

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric - 27 Mar 2008 19:56 GMT
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
Doug Robbins - Word MVP - 27 Mar 2008 20:50 GMT
{ 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 {}
Signature

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

> Hello,
>
[quoted text clipped - 10 lines]
>
> Eric
Eric - 27 Mar 2008 21:54 GMT
Hi Doug,

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

What am I missing?

Thank you.

Eric

>{ IF{ MERGEFIELD "Field1" } = "" <Enter>
> "" { MERGEFIELD "Field2" }}
[quoted text clipped - 22 lines]
>>
>> Eric
Eric - 27 Mar 2008 22:19 GMT
I got it ... Sorry I didn't realize that <Enter> meant pressing the Enter
key...

It's working now.

Thank you.

Eric

> Hi Doug,
>
[quoted text clipped - 33 lines]
>>>
>>> Eric

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.