Concatenate with Null

Connorbop

Registered User.
Local time
Today, 12:33
Joined
Oct 19, 2016
Messages
13
Hello,

I am creating a report in which I want to concatenate multiple address cells:
[AddressObject]
[Address]
[Street]
[Town]
[Postcode]

to form a single line such as:
[AddressObject], [Address], [Street], [Town], [Postcode]

However, one or more of these fields may be null depending on the record within the database thus I need a way to eliminate that field and remove the comma before it to ensure it still forms a seamless address line. I've had a look around and tried multiple ways myself but I cannot find an answer.

Could anyone help me please?
 
[AddressObject] + ", " & [Address] + ", " & [Street] + ", " & [Town] + ", " & [Postcode]
 
google - Law of Propagating Nulls (LOPN)
 
[AddressObject] + ", " & [Address] + ", " & [Street] + ", " & [Town] + ", " & [Postcode]

Thanks for this however I get a returned error saying "#Type!" within the report, why's this?
 
Are all of the fields Text fields? What is the [AddressObject]? I would drop that one.
 

Users who are viewing this thread

Back
Top Bottom