See Allen Browne's ConcatRelated function (Concatenate values from related records)
If you save your existing query as qryVaksinerRaw, you can build a new query like this to produce the results you're after.
SELECT DISTINCT
id,
official_name,
ConcatRelated("vaksiner","qryVaksinerRaw","id = " & [id]) AS vaksiner
FROM qryVaksinerRaw;
To add the function to a module, copy the function from the web page starting with
Public Function ConcatRelated(strField As String, _
and continuing to include
End Function
Then paste the copied text into your module.
Note ConcatRelated()
will then be available for queries run from inside Access. However, like any custom VBA function, it can not be used in queries run from outside Access (like classic ASP, .Net, etc.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…