IF FIELD in Word 2003

M

Marins

Hi everyone!

I'm trying to write a very stupid "IF" expression in a field in word.
This field is populated by a field with the same name in a table in a
MSAccess db.
I have defined this db as datasource and I can read correct value in
word,but when I try to test e field value,a very simple text field, the
If expression doesn't work.

This is my last expression:

{IF {Rec_esportato} = "N" "OK" "KO"}

I've also tried:

{IF {Rec_esportato = "N"} "OK" "KO"}
{IF {Rec_esportato} = "N" "OK" {IF {Rec_esportato} <> "N", "KO"}}

Can Anyone help me??!

Thanks in advance,Marina
 
G

Graham Mayor

What does
{Rec_esportato}
on its own produce?

You may need {REF Rec_esportato} or {Mergefield Rec_esportato}depending on
where you get the field information from.

However the correct syntax would be

{IF {Rec_esportato} = "N" "OK" "KO"}


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

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

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