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 / February 2005

Tip: Looking for answers? Try searching our database.

IF statements always returning the "False" condition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JCSadie - 25 Feb 2005 19:53 GMT
I am working with Word documents that contain several IF statements.  The IF
statements are mostly related to whether or not I need the singular or plural
words.  The if statement looks something like this:

{ IF {mergefield field11 }="Debtors" "Debtors'" "Debtor's" \*Mergeformat }

No matter if field 11 contains Debtors or Debtor, the false condition always
shows up in my document.

What is going on with this?  I have checked the Website for MVP's for
answers and also searched the Microsoft site for answers.  
Doug Robbins - 25 Feb 2005 23:35 GMT
A field construction that looks exactly like the one that you posted works
fine for me.

If you want to email a copy of the document to me, I will take a look at it
for you.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

>I am working with Word documents that contain several IF statements.  The
>IF
[quoted text clipped - 10 lines]
> What is going on with this?  I have checked the Website for MVP's for
> answers and also searched the Microsoft site for answers.
Graham Mayor - 26 Feb 2005 07:36 GMT
It works for me too - you need to check what field11 is actually placing in
the merge, when not in the conditional construction, and not what you expect
it to insert.

Signature

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

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

> I am working with Word documents that contain several IF statements.
> The IF statements are mostly related to whether or not I need the
[quoted text clipped - 8 lines]
> What is going on with this?  I have checked the Website for MVP's for
> answers and also searched the Microsoft site for answers.
JCSadie - 28 Feb 2005 15:19 GMT
Field 11 contains either Debtors or Debtor.  I have that field inserted into
the document and it delivers without If statements, r depending on what is
contain in the field, Debtors or Debtor.  That seems to work out just fine.  
Thanks for your help.  

> It works for me too - you need to check what field11 is actually placing in
> the merge, when not in the conditional construction, and not what you expect
[quoted text clipped - 12 lines]
> > What is going on with this?  I have checked the Website for MVP's for
> > answers and also searched the Microsoft site for answers.
Graham Mayor - 28 Feb 2005 15:42 GMT
In that case, there is no reason why it should not work as well there as it
does for Doug and me.

{ IF {mergefield field11 } = "Debtors" "Debtors'" "Debtor's" }

I take it you have inserted the field into the condition and not merely
typed it and that it is spelled correctly?

Signature

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

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

> Field 11 contains either Debtors or Debtor.  I have that field
> inserted into the document and it delivers without If statements, r
[quoted text clipped - 26 lines]
>>> What is going on with this?  I have checked the Website for MVP's
>>> for answers and also searched the Microsoft site for answers.

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.