Results 1 to 2 of 2
  1. #1
    Halter_joel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2013
    Posts
    1

    Multiple Records Consolidated to one

    Hi All,


    I am new to access, but i'm working with someone who has been using it for years and we're both stumped on this senario.
    Heres an example of what i'm trying to accomplish.
    CustomerID Atrraction SeatID SectionName RowLabel SeatLabel CustmerID Atraction SectionName RowLabel SeatLabel
    10 2 14 G Right B 2 Want it to look like this 10 2 G Right B 2-4
    10 2 15 G Right B 3 10 3 G Right B 2-4
    10 2 16 G Right B 4 11 2 A Center H 20-22
    10 3 14 G Right B 2 11 3 A Center H 20-22
    10 3 15 G Right B 3
    10 3 16 G Right B 4
    11 2 200 A Center H 20
    11 2 201 A Center H 21
    11 2 202 A Center H 22
    11 3 200 A Center H 20
    11 3 201 A Center H 21
    11 3 202 A Center H 22

    Mainly i Want it to take the seats that have the same SectionName, Same RowLabel and Consolidate the Records by Adding the consecitive Seats Together.

    Do you guys have any thoughts?????

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    This isn't the solution, but I think could be adapted:

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

    basically you'd grab the first and last values and put them together. You'd need some logic to handle single records, plus to ensure contiguous values. Might be enough for your friend to get started anyway.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Consolidated Screening List Search database
    By NewbieInCT in forum Sample Databases
    Replies: 7
    Last Post: 04-24-2012, 06:23 PM
  2. Replies: 3
    Last Post: 01-05-2012, 12:04 PM
  3. Foreign keys in a consolidated table
    By threepwoodjr in forum Database Design
    Replies: 3
    Last Post: 01-14-2011, 11:25 PM
  4. Multiple records with same name BUT..
    By initiator in forum Access
    Replies: 2
    Last Post: 04-11-2010, 12:28 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