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

Tip: Looking for answers? Try searching our database.

= AND

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RUCerius - 29 Jul 2005 20:18 GMT
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

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.