Reply
 
Thread Tools Display Modes
  #1   Report Post  
Lara Z
 
Posts: n/a
Default

Oh my! I stepped away for a couple of days and came back to lots of great
responses. I am trying macropod's and Maxey's use of a numerical test,
coupled with an INCLUDETEXT command when it returns 1. Works great. Thanks
for all the teriffic dialog/feedback.

"Peter Jamieson" wrote in message
...
Indeed:-)

I certainly hope Lara Z has some ideas to go on now!

Peter J.
"macropod" wrote in message
...
Hi Peter & Greg,

In either case, you're going to need to set the 'County' value via the
mailmerge. Unless you're planning to do this via a SET field that I
haven't
seen explained (eg {SET County {MAILMERGE CountyName}}), you'd both need
to
use {MAILMERGE County} instead of {County}.

Cheers


"Peter Jamieson" wrote in message
...
You can probably simplify that using COMPARE via e.g.

{ IF { =({ COMPARE { County } = "Hillsborough" }+{ COMPARE { County } =
"Pineallas" }+{ COMPARE { County } = "Lake" }+{ COMPARE { County } =
"Orange""1""0" }+{ COMPARE { County } = "Brevard" }+{ COMPARE { County }
=
"Indian River" }+{ COMPARE { County } = "Volusia" }+{ COMPARE { County }
=
"Oceola" }) } 0 "Test Sat" "Test Unsat" }

Peter Jamieson

"Greg Maxey" wrote in message
...
Lara,

I found some material that I had squirreled away on Word math fields.
A
bright fellow that goes by Macropod shows us a relatively simple

process:

{ If { =({ IF { County } = "Hillsborough""1""0" }+{ IF { County } =
"Pineallas""1" "0"}+{ IF { County } = "Lake""1""0" }+{ IF { County } =
"Orange""1""0" }+{ IF { County } = "Brevard""1""0" }+{ IF { County } =
"Indian River""1""0" }+{ IF { County } = "Volusia""1""0" }+{ IF {

County }
= "Oceola""1""0" }) } 0 "Test Sat""Test Unsat }

Basically you just set up 8 condition equal 0 or 1 and add then up.
One
and only one can be 1 and if any one is 1 then the condition {=(1)}
0

is
met and the true result displayed. As mentioned earlier, you should
replace "Test Sat" with an IncludeText field or AutoText field.




--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

Lara Z wrote:
I am trying to code a merge document that will insert an additional
two-page document if the 'COUNTY' field is one of eight counties. The
additional document is the same for all eight counties. In
WordPerfect this could be done simply with the SWITCH/ENDSWITCH
construct. I know there is no equivalent in Word, but is there any
easier way to do this than doing eight back-to-back IF statements
with the same (redundant) two pages of text inserted in each "then"
part of the IF statement? Is there an OR operator in Word that might
help accomplish this?










Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter data in 1 text form field & have multiple locations fill Lee Microsoft Word Help 1 March 16th 05 10:56 PM
Zip Field Jumps Out Of Place John Esmay Mailmerge 2 December 14th 04 11:25 PM
Make merged field bold if merged field > 3 Vick Mailmerge 1 December 13th 04 04:26 PM
How do I use the PRINT field code to ... Dave Microsoft Word Help 3 December 13th 04 03:06 PM
Text Form Field Ref in Footer Won't Update on Screen StarWine Microsoft Word Help 3 December 6th 04 06:17 PM


All times are GMT +1. The time now is 12:15 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"