MS Word Help gives several great examples of using IF...THEN...ELSE with the
=AND operator but I have yet to find a way to compose the statement. I keep
getting: Error! Unknown op code for conditional
As far a 'free' help the closest I have come is Hans from Woody's Lounge who
gave me some great tips.
http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=504396
Any MVP's out there who can explain to a MS Word Mail Merge newbie how I can
use the =AND and the =OR constructs and also any gotcha's to be careful of?
Someone said you can't go beyond 1 =AND statement in an IF...THEN...ELSE.
(Of course I'd be happy to get 1 to work!).
Here is my 'field construction' as it stands now:
{ IF { =AND ({ COMPARE { MERGEFIELD ID } >= 200000},{ COMPARE { MERGEFIELD
ID } <= 300000} ) } = 1 "OK" "BAD" }
TIA
Peter Jamieson - 29 Jul 2005 23:53 GMT
It looks OK and works here, but all the field braces {} have to be the sort
you can insert using ctrl-F9. If they already are, what I would suggest is
that you selection each expression in turn (e.g. { MERGEFIELD ID }, {
COMPARE { MERGEFIELD ID } >= 200000 } then use right-click and toggle field
codes to see the result of that part of the whole construct to see if you
can detect which part is causing the problem.
Peter Jamieson
> MS Word Help gives several great examples of using IF...THEN...ELSE with
> the
[quoted text clipped - 19 lines]
> ID } <= 300000} ) } = 1 "OK" "BAD" }
> TIA