iif error??

M

mgp

Hello!

I'm using a2k and can't seem to figure out why a simple
iif statement doesn't work for me. Here is what I am
trying to do ... simply change the code to a description.
i.e. "c" = "coconut" or "s" = "strawberry".
A shorter version of my logic in a "text box.data.control
source" is:

=iif ([detail] = "c", "coconut", iif([detail]
= "s", "strawberry"))

This results in an #error

If I use the [detail] only ... the result is C or S. If I
use ="test" & [detail] ... I get an #error.

What am I doing wrong?

mgp
 
M

mgp

My appologies ... I found out the problem by changing
the 'detail' name to something else ... I keep on
forgetting to check for reserved words.

mgp
 

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