Iif statements that return a value from a list box

B

Bill F

When I write the Iif statement the value returned is the ID number of the
item in the list box but not the value. How do I get the actual value
returned in my expression?
 
I

Ian C

Bill, you need to refer to the appropriate column of the list box.

iif(x=y,[listbox_name].[column](1),"nothing")


where column(1) is the second list box column, and (0) the first.
 

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