Thanks to anyone who can help with this, I have address fields that I want to place on seperate lines, removing any blank fields.
I have the following code to do so:
=IIf(IsNull([Organisation]),"",[Organisation] & ", ") & IIf(IsNull([House Number/Name]),"",[House Number/Name] & IIf(IsNull([Property]),"",[Property] & ", ") & " " & IIf(IsNull([Street]),"",[Street] & ", ") & IIf(IsNull([Locality]),"",[Locality] & ", ") & IIf(IsNull([Town]),"",[Town] & ", ") & IIf(IsNull([County]),"",[County] & ", ") & IIf(IsNull([Postcode]),"",[Postcode]))
But this just places then all next to each other e.g.
11 Madeup Lane, London, SW6
I have tried the expressions from various sources which suggest placing an underscore (_) after the &, but this just gets me an error message.
How do I get them all to sit on different lines without having blank ones?
Thanks
I have the following code to do so:
=IIf(IsNull([Organisation]),"",[Organisation] & ", ") & IIf(IsNull([House Number/Name]),"",[House Number/Name] & IIf(IsNull([Property]),"",[Property] & ", ") & " " & IIf(IsNull([Street]),"",[Street] & ", ") & IIf(IsNull([Locality]),"",[Locality] & ", ") & IIf(IsNull([Town]),"",[Town] & ", ") & IIf(IsNull([County]),"",[County] & ", ") & IIf(IsNull([Postcode]),"",[Postcode]))
But this just places then all next to each other e.g.
11 Madeup Lane, London, SW6
I have tried the expressions from various sources which suggest placing an underscore (_) after the &, but this just gets me an error message.
How do I get them all to sit on different lines without having blank ones?
Thanks