You could write it this way:
SELECT Distinct
tbl.Chain,
tbl.Store,
ConcatRelated("Warehouse","tbl","Chain=""" & [Chain] & """ and Store=""" & [Store] & """") AS Warehouses
FROM tbl;
You could write it this way:
SELECT Distinct
tbl.Chain,
tbl.Store,
ConcatRelated("Warehouse","tbl","Chain=""" & [Chain] & """ and Store=""" & [Store] & """") AS Warehouses
FROM tbl;