G
Guest
I am not sure if this can be done with ms access, but I am hoping to get some
ideas. here is a crude approximation of the table, two columns, id and
text_field:
id text_field
-----------------
1 hello
1 my name is mud
I would like to be able to use access to find all rows with the same id
value, and then combine all the text_field values for those rows with the
same id value, and then write all this into a new table, with a space between
the strings that are combined. for the data shown above, the end result in
the new table would be:
id text_field
1 hello my name is mud
I cant find a way to do this in access. There seem to be no aggregate
functions for string data. (SUM function only works for numbers)
My only plausible idea so far is to somehow somewhere use an array to hold
the values, and then loop through them and then combine them, but I can find
ZERO documentation on using arrays in MS access VBA to get data from a table,
query or report. If you have any suggestions, fire away! thanks
ideas. here is a crude approximation of the table, two columns, id and
text_field:
id text_field
-----------------
1 hello
1 my name is mud
I would like to be able to use access to find all rows with the same id
value, and then combine all the text_field values for those rows with the
same id value, and then write all this into a new table, with a space between
the strings that are combined. for the data shown above, the end result in
the new table would be:
id text_field
1 hello my name is mud
I cant find a way to do this in access. There seem to be no aggregate
functions for string data. (SUM function only works for numbers)
My only plausible idea so far is to somehow somewhere use an array to hold
the values, and then loop through them and then combine them, but I can find
ZERO documentation on using arrays in MS access VBA to get data from a table,
query or report. If you have any suggestions, fire away! thanks