Use of IF in SQL query to check / replace field value

N

none

iif(isnull(x),"Unknown value",x)
-----Original Message-----
Hi,

I have a situation where I would like to check the value
of a field to see if it is NULL and if it is then replace
it with a string such as "Unknown value". I would like to
do this as part of an SQL query which poulates the
rowsource of a list box. I do not want to update the
underlying data, the "Unknown value" text is for display
purposes in the list box only.
 

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