Results 1 to 3 of 3
  1. #1
    GodivaGirl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Location
    Long Beach, MS
    Posts
    18

    Combine like product fields in table and total quantity for those like fields

    Good morning,



    I have a product table that includes the name of the product, the quantity ordered, and the unit price. This is a summary table for the whole year showing all of the orders. The Primary Key is [ID] from the [tblOrders] table. I attached a screen shot of my query. I don't know if you can see it. I want to generate a report where each product is listed once, the unit price for that product is listed, the total number of that item that was ordered throughout the year, and finally, the total amount spent for each item during the year.

    Thank you.















    Attached Thumbnails Attached Thumbnails qryOrders.jpg   qryOrders.jpg  

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    What you have described as a Product Table would typically be called
    OrderLineItem or OrderDetail. You haven't really described your database in business terms, but i think a 4-5 line overview (the 30000 ft level) in plain English would be helpful.

    Often, when you see a "Order and Product" type database, you would have

    Customers, Orders, OrderDetail, Product tables.

    Here is a free, generic data model for example. It is generic in that it shows tables and relationships for a typical set up. However, your details may be different and all tables/fields may/may not be appropriate.

  3. #3
    GodivaGirl is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2015
    Location
    Long Beach, MS
    Posts
    18
    Thank you very much. I have it fixed now.

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

Similar Threads

  1. Replies: 3
    Last Post: 01-18-2015, 06:05 PM
  2. Replies: 3
    Last Post: 01-13-2014, 11:28 PM
  3. Replies: 1
    Last Post: 02-16-2013, 09:11 AM
  4. Combine two fields, Null fields involved
    By yes sir in forum Access
    Replies: 9
    Last Post: 10-03-2010, 09:20 AM
  5. Replies: 3
    Last Post: 08-02-2009, 03:52 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