Link to home
Start Free TrialLog in
Avatar of DatabaseDuane
DatabaseDuane

asked on

Gathering data into single field

I need to export data from Access that goes into a spreadsheet that aggragates many items into one field. It would take data like this:

CustomerID PayID  Date  Amount
3455     47  1/1/2010 $10
3455     99  7/1/2011  $90
5544     54  6/5/2010 $25

and creates one long text field displaying the records like this:

Customer ID   Text
3455               1/1/2010  $10, 7/1/2011 $90
5544              6/5/2010  $25

It will allow for single line excel record viewing.

Any suggestions how to build a table or create a query that aggragates the data?
Avatar of vincem1099
vincem1099
Flag of United States of America image

Use the & to concatenate fields
SELECT [CustomerID], [PayID] & [Date] & {Amount] as Text
FROM DataTable

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of vincem1099
vincem1099
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DatabaseDuane
DatabaseDuane

ASKER

This is an incredibly elegant solution. Thank you.