G
Guest
Access03/WinXP
I have a very simple query that I need to rework via another query or VBA
that takes multiple records of the same CompanyID and arranges the data into
a single row.
Essentially, I need to take the query results:
CompanyID MemberName
1000 John Smith
1000 Jane Smith
etc.
and turn it into
CompanyID Member1 Member2 ..... Member10 (maximum number)
1000 John Smith Jane Smith .....
Can this be done with a Crosstab Query? Haven't quite figured out how so
help would be appreciated.
I've written many routines in VBA to roll through records and combine
multiple fields into a single comma-separated field (like John Smith, Jane
Smith, etc.) but am stuck on how to configure the routine to roll through the
record and if the CompanyID is the same, add the next record into the next
Member(x) field.
I have a temp table set up ("TempCompanyMembers") that has the fields
CompanyID and ten separate text fields for the ten possible member names.
Any help is appreciated, as always.
I have a very simple query that I need to rework via another query or VBA
that takes multiple records of the same CompanyID and arranges the data into
a single row.
Essentially, I need to take the query results:
CompanyID MemberName
1000 John Smith
1000 Jane Smith
etc.
and turn it into
CompanyID Member1 Member2 ..... Member10 (maximum number)
1000 John Smith Jane Smith .....
Can this be done with a Crosstab Query? Haven't quite figured out how so
help would be appreciated.
I've written many routines in VBA to roll through records and combine
multiple fields into a single comma-separated field (like John Smith, Jane
Smith, etc.) but am stuck on how to configure the routine to roll through the
record and if the CompanyID is the same, add the next record into the next
Member(x) field.
I have a temp table set up ("TempCompanyMembers") that has the fields
CompanyID and ten separate text fields for the ten possible member names.
Any help is appreciated, as always.