Results 1 to 3 of 3
  1. #1
    mchadwick is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Sep 2011
    Posts
    71

    Combine results together with query

    I have some data I want to combine together in one field. So I have two users we'll call them Bob and Sally. Bob has 3 computers; comp1, comp2 and comp3. Sally has 2 computers comp4 and comp5. they are listing in the table/query with one record for each computer


    Name Computers
    Bob comp1
    Bob comp2
    Bob comp3
    sally comp4
    sally comp5

    I want to end up with this
    Name Computers
    Bob comp1; comp2; comp3
    Sally comp4; comp5

    How can I do that?

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    there are two methods - one is is called 'concatrelated'. There are various examples around, all working off the same principle. Here is a link to one of them
    http://allenbrowne.com/func-concat.html

    The other is a crosstab query but given there are only two columns and looks like you want to end up with two columns, probably not appropriate in this case.

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Replies: 1
    Last Post: 05-06-2013, 03:32 PM
  2. Replies: 1
    Last Post: 10-23-2012, 02:04 PM
  3. How do I combine query results?
    By neha in forum Queries
    Replies: 2
    Last Post: 12-29-2011, 11:30 PM
  4. Combine query results
    By broadm in forum Queries
    Replies: 2
    Last Post: 04-15-2011, 08:37 AM
  5. Combine Query Results to One Table
    By pr4t3ek in forum Queries
    Replies: 0
    Last Post: 12-19-2008, 06:37 AM

Tags for this Thread

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