B
bhammer
My address list is a bit different in that it has only four
fields--StreetNumber, StreetName, Unit and Building. Up to three of these may
be blank (Null) for any given record in my Address table.
In my query I want to concantonate the address parts into one field. I
currently have:
Address: IIf(IsNull([StreetNumber]),"",[StreetNumber] & " ") &
IIf(IsNull([StreetName]),"",[StreetName] & " ") &
IIf(IsNull([Unit]),"","Unit " & [Unit] & " ") &
IIf(IsNull([Building]),"","Bldg. " & [Building])
This works, but rather than a space between each address part, I want a
comma then a space--but only if the preceeding part(s) is not Null. I want to
avoid, ", Unit 102, Bldg. 23" (with the leading comma and space in front with
nothing else preceeding it).
-Brad
fields--StreetNumber, StreetName, Unit and Building. Up to three of these may
be blank (Null) for any given record in my Address table.
In my query I want to concantonate the address parts into one field. I
currently have:
Address: IIf(IsNull([StreetNumber]),"",[StreetNumber] & " ") &
IIf(IsNull([StreetName]),"",[StreetName] & " ") &
IIf(IsNull([Unit]),"","Unit " & [Unit] & " ") &
IIf(IsNull([Building]),"","Bldg. " & [Building])
This works, but rather than a space between each address part, I want a
comma then a space--but only if the preceeding part(s) is not Null. I want to
avoid, ", Unit 102, Bldg. 23" (with the leading comma and space in front with
nothing else preceeding it).
-Brad