Results 1 to 2 of 2
  1. #1
    tbfoxtwo is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1

    Grouping Data Into One Field from Multiple Records

    Hello, I have designed a Totals query that has produced multiple rows of data. All of the information that I want is in the resulting dataset, but there are several records that have repeated entries in them.

    The fields are: ID, Division, Category, Person, Service and Location. 20 records result, with all of the data in the first three fields being the same. The last two fields have the unique data, with five kinds of Service listed across four Locations (e.g., to produce 20 records).

    I would like to create a resulting dataset that shows one, combined Location field for any one Service, thereby resulting in a dataset of five total records. As an example, if I have Service 1, Service 2, Service 3, Service 4, and Service 5, I would like to show each Service on separate lines, but with a corresponding combined (I suppose concatenated) field showing the corresponding locations in one field separated by commas. For example, instead of five different lines for Service 1 I would have one line for Service 1 with a corresponding field that looks like "Location 1, Location 2, Location 3, Location 4".



    I have to believe this is possible, but have been wracking my brain and can't figure it out! Can you help?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 8
    Last Post: 05-18-2018, 12:38 PM
  2. Replies: 3
    Last Post: 07-24-2016, 12:28 PM
  3. Grouping Data Into Sections from A Field?
    By MarkF2004 in forum Access
    Replies: 2
    Last Post: 10-10-2014, 09:43 AM
  4. Replies: 4
    Last Post: 01-04-2012, 02:35 PM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 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