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 2005

Tip: Looking for answers? Try searching our database.

Nested If

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vobonyo - 11 Mar 2005 15:17 GMT
I'm trying to merge a document with a data source from
Excel but the result I get is always the first
percentage field repeated for all statements
regardless of the condition. It ignores the rest of
the nested if_statement.

{ IF {MERGEFIELD PledgeCode} = “05 Foundation” “5%” “{
IF {MERGEFIELD PledgeCode} = “05 Builders” “7%”{ IF
{MERGEFIELD PledgeCode} = “05 Encouragers” “10%”{ IF
{MERGEFIELD PledgeCode} = “05 Restorers””15%”{ IF
{MERGEFIELD PledgeCode} = “05 Sustainers” “20%” “” }”
}” }” }”

This outputs 5% regardless of the PledgeCode

Vera
Peter Jamieson - 11 Mar 2005 16:51 GMT
I believe Word gets confused because the first part of the code is a number,
and that if you change each

{ MERGEFIELD PledgeCode }

to

"{ MERGEFIELD PledgeCode }"

the IF statement will work properly.

Peter Jamieson

> I'm trying to merge a document with a data source from
> Excel but the result I get is always the first
[quoted text clipped - 12 lines]
>
> Vera
vobonyo - 11 Mar 2005 18:11 GMT
Thanks. It works wonderfully now.

Vera

> I believe Word gets confused because the first part of the code is a number,
> and that if you change each
[quoted text clipped - 25 lines]
> >
> > Vera

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.