You've 2 options here, one is to set the File->Report Options->Convert null values to default.
The other is to think this through, in that if you're missing a city or a state, it's probably a bad idea to just display what you have, you need to flag them as bad.
So try:
if isnull({table.city}) or isnull({table.state}) then
"bad address"
else
if isnull({table.zip}) then
{table.city} & ", " & {table.state}
else
{table.city} & ", " & {table.state} & " " {table.zip}
Anyway, you get the idea, you can just change the bad address to reflect what you have if it doesn't matter if you have bad addresses.
See it is not nessesarily bad - it could be international like Tokyo, (zipNull) Japan. This is why I want to instead of having a field per each - get them into formula so formatting will look nice even if something missing. But I think I got your approach, synapsevampire.
Ahhhhh, yeah, but if it's Intl then you don't understand the addresses, they tend to have different naming as they have different components, such as not having States.
Glad that you worked it out, and I suggest that you post specifics in the future, such as it being Intl, and or course you'll need another field, which is the Country.
synapsevampire,
they do not store Intl addresses differently. It goes 'let's put their Country name where our Zip Code was...' type of thing. So i am not fully aware yet what is going to happen but testing will show. Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.