Results 1 to 3 of 3
  1. #1
    lex231 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Jun 2016
    Posts
    1

    How to create product families in access

    Hello,


    I am trying to group together different product id's with the same sales order number in access. The output I am looking for would show how many times the product id's would show up on the same sales order. I don't have much access experience so I am kind of stuck on how to build the query. The following picture is an example I did manually of the output I am looking for. Any help would be great!!!

    Thanks!!
    Attached Thumbnails Attached Thumbnails 2016-06-29 11_32_47-Product Families.xlsx  [Read-Only] - Excel.png  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    the grid makes no sense.
    Its product vs itself. A single line will do this : ProdID, Count.
    Unless you meant SalesOrder vs Product.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    lex,

    I have a feeling you have excel experience.
    If you want to know about Products on sales Orders, I think your basic table structure may be incorrect.

    Consider:

    A Customer buys something(s) via 1 or many SalesOrder
    A SalesOrder may contain 1 or Many Items. This is typically handled by a SalesOrderDetails table
    An Item or Product information is stored in the Product table.

    Customer---->SalesOrder-->SalesOrderDetails<---Product

    This structure handles:

    Customer Bob makes 2 SalesOrders during 2016
    On his first SalesOrder he purchased 10 of Product #3 @ $20.00 each and
    i 4 of Product #123 @ $4.59 each

    On his second SalesOrder he purchased 11 of Product #200 @ $6.88 each

    Hope this is helpful. Good luck.

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

Similar Threads

  1. Replies: 6
    Last Post: 02-28-2015, 11:57 AM
  2. Replies: 3
    Last Post: 01-18-2015, 06:05 PM
  3. Replies: 11
    Last Post: 11-06-2014, 06:01 PM
  4. Replies: 2
    Last Post: 08-14-2014, 11:49 AM
  5. Replies: 1
    Last Post: 12-20-2012, 10:17 AM

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