Hi,
I'm having trouble understanding how I split a CSV text column so I have multiple rows, I found many threads with 'Text To Column', so I was looking at trying that first.
An example I found shows
So i tried to apply that to the query as an expression with
But Access gives the following error when trying to exit the expression
I don't think the above will help as I cannot guarantee the the first item in the CSV is always the same, so perhaps I should forget about spliting text to columns and just aim for what i actually am trying to achieve..
What I want to do is take the following data structure.
ID | Missing
1 | a,b,c
1 | b,c
2 | b,c,d,e
3 | c,d,e
3 | d,e
and end up with a count....
a | 1
b | 3
c | 4
d | 3
e | 3
How would I do this with a query in access?
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads
I'm having trouble understanding how I split a CSV text column so I have multiple rows, I found many threads with 'Text To Column', so I was looking at trying that first.
An example I found shows
Code:
split("a,b,c,d,e",",")(0)
So i tried to apply that to the query as an expression with
Code:
A : split([Missing],",")(0)
The expression you entered has an invalid .(dot) or !operator or invalid parentheses
I don't think the above will help as I cannot guarantee the the first item in the CSV is always the same, so perhaps I should forget about spliting text to columns and just aim for what i actually am trying to achieve..
What I want to do is take the following data structure.
ID | Missing
1 | a,b,c
1 | b,c
2 | b,c,d,e
3 | c,d,e
3 | d,e
and end up with a count....
a | 1
b | 3
c | 4
d | 3
e | 3
How would I do this with a query in access?
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads