×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Very Large Pivot Table /Array - Access

Very Large Pivot Table /Array - Access

Very Large Pivot Table /Array - Access

(OP)
I have a table in MS Access with over 500,000 records. I want to pivot of these records based on a certain field, with the 'data' being a list as opposed to SUM or COUNT. However there are too many records for Pivot in Access/Excel and it doesn't allow me to have lists. I'll use a simple example to illustrat

TableA
CustomerID, CustomerType, PetType
1234,MAN,dog
1234,MAN,cat
1999,CHILD,fish
2222,WOMAN,cat
1999,CHILD,snake
1999,CHILD, hamster
4444,MAN,Pigeon

What I want to produce is
CustomerType, CustomerID, PetTypes
MAN, 1234, "dog,cat"
     4444, pigeon
CHILD,1999, "fish,snake,hamster"
WOMAN,2222, cat

In my real data the field equivalent to CustomerID would have over 400,000 Unique records.

Anyone know how it can be done easily ...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources