IF statement with INCLUDETEXT
by TXlrYXNfUm9iaQ » Fri, 11 Nov 2005 01:32:09 GMT
Hello, I requested information from this user group before relative to the
subject and achieved great results. However I have been unable to duplicate.
the statement is below
{IF {PART_TIME}>0 {INCLUDETEXT "FILENAME AND PATH"}}
It doesn't actually show the field part_time it shows the value(0).
Regardless of the value the document is inserted.
I used ctrl+f9 to key braces but keyed in everything else except for the
field part_time which is was input by insert a merge field
Any assistance would be greatly appreciated.
Re: IF statement with INCLUDETEXT
by Doug Robbins - Word MVP » Fri, 11 Nov 2005 04:11:35 GMT
It should be
{IF { MERGEFIELD PART_TIME}>0 {INCLUDETEXT "FILENAME AND PATH"} ""}
--
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
Similar Threads:
1.Possible BUG: Multiple HTTPrequests send from one includetext statement
2.Rookie INCLUDETEXT Or IF Statements
I am such a rookie at this, it is against the laws of nature...
I have a letter to 200 agencies. There are nine possible boilerplate
paragraphs that an agency will get a combination of. I have been playing
with an external file with the paragraphs given "bookmarks." When I put the
text into the bookmark dialogue box, I cannot control any simple formatting
like BOLD or UNDERLINE.
I need the code to do the following:
If mergefield "computers" is not blank then INCLUDETEXT associated with
bookmark "computers." Keep the formatting for the "computers" paragraph.
If mergefield "computers" is blank - do nothing.
If mergefield "environment" is not blank then INCLUDETEXT associated with
bookmark "environment." Keep the formatting for the "environment" paragraph.
If mergefield "environment" is blank - do nothing.
etc. etc.
The letter may have two of these paragraphs, all nine paragraphs or no
paragraphs or blank spaces.
Can someone get me started?
--
Thanks
You all are teaching me so much
3.which statement right , question isChoose the correct statement?
Choose the correct statement
1.. Word document can be saved a web page and then converted back to a word
document
2...Can be saved as web pages but cannot be converted back to word document
3...Word document cannot be saved as web pages
4...Word document cannot be saved as web pages and web page cannot be
converted to the word document.
4.Using OR statements in an If, then, else statement
I'm trying to create an "if, then, else statement". I understand the basics
of If {mergefield XX} = "A" "Print this" "Dont print this".
How do I have the statement search for multiple criteria..If {mergefield XX}
= "A or B or C" "Print this" "Dont print this"...without having to create a
statement for each variable individually.
5.Multiple "OR" statements in a single "IF" statement
I've got a document that would be MUCH easier if I could just do
something like {IF { MERGEFIELD FieldName} = "A" or "B" or "C" or "D"
then "Print this text" otherwise "print this text"} - I've seen some
pretty complex nested IF statements. Is there an easier way to do
this? Maybe Microsoft could help enhance this capability in the
future. Any thoughts?
6. Bookmark & IF Statement - always result the else statement
7. req: help with includetext
8. INCLUDETEXT and Mail Merging