bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have a formula that combines the city, state and Zip fields in one field called CSZ. I want to show nothing in that field if there isn't an address provided
But, if the address, city, state, or zip fields are null, I will get a ", " followed any field that may have something (e.g. ", CA").
What am I doing wrong with the formula below:
IIf(Not IsNull([Address]),[City] & ", " & [State] & " " & [Zip]," ")
I tried putting the '" "' result first (i.e. ISNull([Address]), but I got the same result.
It seems that it is including the comma if the address field is empty for some reason.
Thank you for your help,
Michael
But, if the address, city, state, or zip fields are null, I will get a ", " followed any field that may have something (e.g. ", CA").
What am I doing wrong with the formula below:
IIf(Not IsNull([Address]),[City] & ", " & [State] & " " & [Zip]," ")
I tried putting the '" "' result first (i.e. ISNull([Address]), but I got the same result.
It seems that it is including the comma if the address field is empty for some reason.
Thank you for your help,
Michael