Results 1 to 4 of 4
  1. #1
    Eric@Gopher is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Location
    Minnesota
    Posts
    6

    Combining fields from multiple records into one record


    I have 55,000 rows of order data, some orders may have up to 8+ rows associated based on each item that was for that order. For example:

    Order # Cust # Contact Name Date Order Type Item # Item Desc Qty List Price
    3215616 10003 Will Biles 9/1/11 New Biz 68-55 Tuna Hook 1 114.1
    3215616 10003 Will Biles 9/1/11 New Biz 68-57 Tuna Remover 1 72.32
    3215616 10003 Will Biles 9/1/11 New Biz 68-64 Tuna Cleaner 4 8.57

    What I want to do is compare the order number and then based on that move the item#, Item Desc, Qty, and List Price for each to a new column along with the Order #, Cust #, Name, Date, and Order Type to create on column of data for each order number but with all the items information. See Below

    Order# *Cust#*Name*Date*Type *Item # *Item Desc* Qty* Price *Item# *Item *Desc *QTY *Price *Item# *Item Desc *QTY * Price

    I would really appreciate the help! Thank you!

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    You might want to write down in plain English what question(s) you are trying to answer.
    You have an un-normalized concoction of Orders; OrderItems and Products.
    The structure is typically seen with older non database systems. It appears that you have a text file or spreadsheet that you are trying to analyze.

    Could you tell us the source of this info?
    If you want to supply more info, I'm sure someone will assist. But if you're going to use Access with this data, I strongly suggest you put it into a designed database, and we can help with that.

    Good luck with your project no matter what you decide to do.

    You might get some insight from this (you may have to ignore Customer and a few other pieces)

    http://www.databaseanswers.org/data_...ders/index.htm

  3. #3
    Eric@Gopher is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Location
    Minnesota
    Posts
    6
    I want to append Item Number, Item Description, Quantity ordered, and List Price to an existing record. The order number is unique but there may be several instances of each order number: See Below for current view

    Order # Cust # Contact Name Date Order Type Item # Item Desc Qty List Price
    3215616 10003 Will Biles 9/1/11 New Biz 68-55 Tuna Hook 1 $114.10
    3215616 10003 Will Biles 9/1/11 New Biz 68-57 Tuna Remover 1 $72.32

    I Would like it to look like this:

    Order # Cust # Contact Name Date Order Type Item # Item Desc Qty List Price Item # Item Desc Qty List Price

    3215616 10003 Will Biles 9/1/11 New Biz 68-55 Tuna Hook 1 $114.10 68-57 Tuna Remover 1 $72.32

    Is this clearer?

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    The order number is unique but there may be several instances of each order number
    This might make sense in a spreadsheet, but not in a database.
    Why are you attempting to do this in Access if you don't intend to set up normalized tables?

    The output you are wanting is un-normalized. You could get that output from a query, but you would have to use Normalized table structures.
    see http://allenbrowne.com/func-concat.html

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

Similar Threads

  1. Help with Combining multiple Records
    By Jennivere in forum Queries
    Replies: 1
    Last Post: 11-28-2011, 08:05 PM
  2. Combining Multiple Records into one field
    By MFlood7356 in forum Queries
    Replies: 3
    Last Post: 06-30-2011, 12:49 PM
  3. Replies: 1
    Last Post: 06-24-2011, 10:22 AM
  4. combining multiple records into one record
    By RedGoneWILD in forum Queries
    Replies: 5
    Last Post: 07-28-2010, 11:19 AM
  5. Replies: 1
    Last Post: 12-10-2009, 08:41 PM

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