Results 1 to 4 of 4
  1. #1
    Barry83 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    May 2014
    Posts
    1

    Combining Data in an Access Query using builder function

    Hi have a table in Access 2010 and in one field i have multiple records of the same data as in the next field it has unique data for example:

    Name Colour
    Car Blue
    Car Green
    Car Yellow
    Bus Orange
    Bus Purple
    Bus Red

    I am trying to run a query which will effectively group up the "Name" field and combine the "colour" field against the name using a ";". so it would look like this:



    Name Colour
    Car Blue;Green;Yellow


    do you know how i would do this.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I don't use them but, have you tried building a Crosstab query?

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    A pivot will get you there...sorta. After the pivot, it may require code to get you to the final output.

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Don't know if below is what you are looking for

    http://allenbrowne.com/func-concat.html

    Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. iff function in expression builder
    By deso in forum Queries
    Replies: 4
    Last Post: 03-21-2013, 11:20 PM
  2. Expression Builder in Data Macro
    By Korreia in forum Access
    Replies: 5
    Last Post: 11-14-2012, 05:16 PM
  3. IIf Function for expression builder
    By Bertrand82 in forum Programming
    Replies: 3
    Last Post: 11-12-2012, 12:34 AM
  4. Replies: 9
    Last Post: 08-09-2012, 07:30 PM
  5. Replies: 5
    Last Post: 03-29-2012, 09:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums