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 / June 2004

Tip: Looking for answers? Try searching our database.

Merging conditional fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
s - 14 Jun 2004 21:26 GMT
Hello,

Is there any way to merge fields based on conditions, e.g.
if the field for <<CFOName>> is empty, the field will be
filled with <<AltName>>?
Greg Maxey - 14 Jun 2004 22:10 GMT
S,

Something like {IF {MERGEFIELD CFOName} = """{MERGEFIELD ALTName}{MERGEFIELD
CFOName}} should work.

Signature

Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in gmaxey@whamspammvps.org

> Hello,
>
> Is there any way to merge fields based on conditions, e.g.
> if the field for <<CFOName>> is empty, the field will be
> filled with <<AltName>>?
Graham Mayor - 15 Jun 2004 06:27 GMT
You have sneaked an extra " in there
{IF {MERGEFIELD CFOName} = "" {MERGEFIELD ALTName} {MERGEFIELD CFOName}}
or (I prefer to use speech marks even with fields where they are not
strictly necessary as it makes it easier to debug later)
{IF {MERGEFIELD CFOName} = "" "{MERGEFIELD ALTName}" "{MERGEFIELD CFOName}"}
should do it.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> S,
>
[quoted text clipped - 6 lines]
>> if the field for <<CFOName>> is empty, the field will be
>> filled with <<AltName>>?
 
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.