Hi
I have this code that works fine so it brings in address fields
=[SiteName] & " , " & [SiteAddr1] & " , " & [SiteAddr2] & " , " & [SiteCounty] & " , " & [SitePostCode]
Despite many searches on the internet I cannot find the solution to taking out a , when there is no part of the address . So for example if there was no sitecounty it reads
Sitenam, siteaddr1, siteaddr2, ,sitepostcode
As you can see it puts 2 comma's between siteaddr2 and sitepostcode. It is shrinking (I ahve that set) but does not get rid of the comma. Any ideas how I can get rid of the comma if there is not a sitecounty there.
Thanks
I have this code that works fine so it brings in address fields
=[SiteName] & " , " & [SiteAddr1] & " , " & [SiteAddr2] & " , " & [SiteCounty] & " , " & [SitePostCode]
Despite many searches on the internet I cannot find the solution to taking out a , when there is no part of the address . So for example if there was no sitecounty it reads
Sitenam, siteaddr1, siteaddr2, ,sitepostcode
As you can see it puts 2 comma's between siteaddr2 and sitepostcode. It is shrinking (I ahve that set) but does not get rid of the comma. Any ideas how I can get rid of the comma if there is not a sitecounty there.
Thanks