Full Version: How do you format a single column out of many columns in a list
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
LittleViews
How do you format a single column in a list box?

I have a column that shows a number (an account ID). This is a new feature, so consequently, some accounts have no number, while others have one.

I'd like to substitue "NA" whenever an account ID is not present.
Nwulf
iif([AccountID] & "" = "", "NA", cstr([AccountID]))

That should do it.

Nick
LittleViews
Cookie, can you tell me where that line belongs?

Does it follow after I submit the rowsource?

You know, me.myList.rowsource = "fancySQL"

Then where does that line go?
Nwulf
Take a look at the attached db.

HTH o!

Nick
LittleViews
ThankX
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.