G
Guest
Sorry about the last post being empty, i experienced a slight problem.
Anyways, i have used Duane hookom's concatenate function before, but this
time i am having some problems. I copied the code for the function from his
website and have used one of his queries as the basis for mine. The problem
is that the results are not concatenated together, that is i get one record
per line.
Engine_ID Model
1 1
1 2
1 4
2 3
2 2
But when i want is this:
Engine_ID Model
1 1,2,4
2 2,3
This is the query that i used:
SELECT ModelsXREFEngines.Engine_ID, Concatenate("SELECT Model FROM Models
WHERE Model_ID =" & [Model_ID]) AS [Model Names]
FROM ModelsXREFEngines
ORDER BY ModelsXREFEngines.Engine_ID;
Like i said, i have used the concatenation function before, but now for some
reason it is not working with this query. Any help anyone can provide would
be most appreciated. Thank you
Anyways, i have used Duane hookom's concatenate function before, but this
time i am having some problems. I copied the code for the function from his
website and have used one of his queries as the basis for mine. The problem
is that the results are not concatenated together, that is i get one record
per line.
Engine_ID Model
1 1
1 2
1 4
2 3
2 2
But when i want is this:
Engine_ID Model
1 1,2,4
2 2,3
This is the query that i used:
SELECT ModelsXREFEngines.Engine_ID, Concatenate("SELECT Model FROM Models
WHERE Model_ID =" & [Model_ID]) AS [Model Names]
FROM ModelsXREFEngines
ORDER BY ModelsXREFEngines.Engine_ID;
Like i said, i have used the concatenation function before, but now for some
reason it is not working with this query. Any help anyone can provide would
be most appreciated. Thank you