Skip to content
Advertisement

Concatenating multiple rows, with multiple values in it, into single line in MS Access

I am trying to create simple requirements management database. Basically I have 2 tables like below:

Contract_requirements with 2 columns:

SW_requirements

And I would like to write query to receive such a table:

Tables “Contract requirements” and “SW requirements” are in relation via column “RootReq”

Ive tried to implement code from Allen Browne http://allenbrowne.com/func-concat.html#Top

This is my query

but I get error in Access

“Error3831: The multi-valued field ‘RootReq’ cannot be used in a WHERE or HAVING clause”

Could you guys help me to make this working? Thanks in advance

Advertisement

Answer

Build a query that expands the multi-value field elements to individual records.

Query1

Then use that query as source for ConcatRelated() function.

Advise not to use spaces nor punctuation/special characters in naming convention.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement