H
HECSolution
We have exported a .csv file from a program that runs all company operations.
Upon export a table is created that lists rows of customers with associated
information.
The key data point is the CustID. When we do an export to list equipment
purchased - any multiple purchases cause the CustID to be repeated down the
column with a single piece of equipment to follow in the same row. What we
want to do is to combine all equipment purchased by one customer to appear in
one row instead of being repeated.
So - we need to find an automatic way to make these changes since our
current database is very large and it is not practical to do it manually.
Below is a graphic example of what we have and what we want.
Have:
CustID Equiptpurch
1ADE0001 Item 1234
1ADE0001 Item 5465
1ADE0001 Item 8987
Want:
CustID Equiptpurch1 Equiptpurch2 Equiptpurch3
1ADE0001 Item 1234 Item5465 Item 8987
Looks simple to write - not so simple for us to accomplish. I am just not
sure the best technique to use in Access.
Upon export a table is created that lists rows of customers with associated
information.
The key data point is the CustID. When we do an export to list equipment
purchased - any multiple purchases cause the CustID to be repeated down the
column with a single piece of equipment to follow in the same row. What we
want to do is to combine all equipment purchased by one customer to appear in
one row instead of being repeated.
So - we need to find an automatic way to make these changes since our
current database is very large and it is not practical to do it manually.
Below is a graphic example of what we have and what we want.
Have:
CustID Equiptpurch
1ADE0001 Item 1234
1ADE0001 Item 5465
1ADE0001 Item 8987
Want:
CustID Equiptpurch1 Equiptpurch2 Equiptpurch3
1ADE0001 Item 1234 Item5465 Item 8987
Looks simple to write - not so simple for us to accomplish. I am just not
sure the best technique to use in Access.