field codes in word 2003

D

Doug Robbins - Word MVP

You can create such a conditional field using two { IF } fields

{ IF A = B { IF C = D "Result for A = B and C = D" "Result for A = B and C
<> D" } "Result for A <> B" }

You must use Ctrl+F9 to insert each pair of field delimiters { }

--
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, originally posted via msnews.microsoft.com
 
G

Graham Mayor

Or you take another approach

{ IF { ={ IF { Number1 } > 10 1 0 } * { IF{ Number2 } > 5 1 0 } } = 1 "Both
conditions are true" "Both conditions are not true"}

Or you could check whether any are true

{ IF { ={ IF { Number1 } > 10 1 0 } + { IF{ Number2 } > 5 1 0 } } = 0
"Neither condition is true" }{ IF { ={ IF { Number1 } > 10 1 0 } + { IF{
Number2 } > 5 1 0 } } = 1 "One condition is true" }{ IF { ={ IF { Number1 }
10 1 0 } + { IF{ Number2 } > 5 1 0 } } = 2 "Both conditions are true" }

There are more examples on my web site
http://www.gmayor.com/formatting_word_fields.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top