A
Ant
I am trying to combine values in a column into a single
field in another column.
Below is an example of the data I am using in a plain
text, coma delimited format.
The colums are ID, Field1 and Field2
The first 2 columns are what I have and the third is what
I am hoping to get (although only one record per 'ID' is
required). I got this result using a Update SQL statement
in a VBA loop but this would eventually crash my PC and
that is why I want to know if there is a way to do it
pureley in a query or SQL.
Any help you can offer will be greatly appreciated.
Ant
ID,Field1,Field2
100000425,1,1
100000431,1,167
100000431,7,167
100000431,6,167
100000431,6,167
100000431,7,167
100000438,1,123811
100000438,2,123811
100000438,3,123811
100000438,3,123811
100000438,8,123811
100000438,11,123811
100000480,1,123
100000480,2,123
100000480,3,123
100000480,3,123
100000491,1,123
100000491,2,123
100000491,3,123
100000491,3,123
100000491,3,123
100000504,1,1237
100000504,2,1237
100000504,3,1237
100000504,3,1237
100000504,7,1237
100000515,1,13
100000515,3,13
100000519,1,1237
100000519,2,1237
100000519,3,1237
100000519,3,1237
100000519,7,1237
100000575,1,123
100000575,2,123
100000575,3,123
100000575,3,123
100000575,3,123
100000587,1,13910
100000587,3,13910
100000587,10,13910
100000587,9,13910
100000587,9,13910
100000587,9,13910
100000594,1,123
100000594,2,123
100000594,3,123
100000605,1,123
100000605,2,123
100000605,3,123
100000605,3,123
100000618,1,123
100000618,3,123
100000618,2,123
100000629,1,12371113
100000629,2,12371113
100000629,3,12371113
100000629,3,12371113
100000629,11,12371113
100000629,11,12371113
100000629,7,12371113
100000629,13,12371113
100000631,1,12
100000631,2,12
field in another column.
Below is an example of the data I am using in a plain
text, coma delimited format.
The colums are ID, Field1 and Field2
The first 2 columns are what I have and the third is what
I am hoping to get (although only one record per 'ID' is
required). I got this result using a Update SQL statement
in a VBA loop but this would eventually crash my PC and
that is why I want to know if there is a way to do it
pureley in a query or SQL.
Any help you can offer will be greatly appreciated.
Ant
ID,Field1,Field2
100000425,1,1
100000431,1,167
100000431,7,167
100000431,6,167
100000431,6,167
100000431,7,167
100000438,1,123811
100000438,2,123811
100000438,3,123811
100000438,3,123811
100000438,8,123811
100000438,11,123811
100000480,1,123
100000480,2,123
100000480,3,123
100000480,3,123
100000491,1,123
100000491,2,123
100000491,3,123
100000491,3,123
100000491,3,123
100000504,1,1237
100000504,2,1237
100000504,3,1237
100000504,3,1237
100000504,7,1237
100000515,1,13
100000515,3,13
100000519,1,1237
100000519,2,1237
100000519,3,1237
100000519,3,1237
100000519,7,1237
100000575,1,123
100000575,2,123
100000575,3,123
100000575,3,123
100000575,3,123
100000587,1,13910
100000587,3,13910
100000587,10,13910
100000587,9,13910
100000587,9,13910
100000587,9,13910
100000594,1,123
100000594,2,123
100000594,3,123
100000605,1,123
100000605,2,123
100000605,3,123
100000605,3,123
100000618,1,123
100000618,3,123
100000618,2,123
100000629,1,12371113
100000629,2,12371113
100000629,3,12371113
100000629,3,12371113
100000629,11,12371113
100000629,11,12371113
100000629,7,12371113
100000629,13,12371113
100000631,1,12
100000631,2,12