Hi I wonder if someone can help me, I have the following MySQL query (extract):
concat_ws('\n',
IF(LENGTH(PafAddress.line1),PafAddress.line1,NULL),
IF(LENGTH(PafAddress.line2),PafAddress.line2,NULL),
IF(LENGTH(PafAddress.line3),PafAddress.line3,NULL),
IF(LENGTH(PafAddress.line4),PafAddress.line4,NULL),
IF(LENGTH(PafAddress.Line5),PafAddress.line5,NULL),
IF(LENGTH(PafAddress.post_town),PafAddress.post_town,NULL),
IF(LENGTH(PafAddress.county),PafAddress.county,NULL),
IF(LENGTH(PafAddress.postcode),PafAddress.postcode,NULL)
) AS AddressLabel
Which takes multiple address fields from another table and puts it into a memofield format, with line breaks, and removing null address lines.
Works perfectly in MySQL.
I am now trying to implement this onto a PHP website which is run by MS Access (not my choice!) and it doesnt like the syntax.
I'm not a MS Access expert so would appreciate someone telling me how this might be achieved in Access SQL.