Results 1 to 3 of 3
  1. #1
    mulefeathers is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    39

    Subtotals within a query


    I have a query that is looking at sales orders. Is it possible to add a sub-total to a query?

    Example:
    My query returns sales_date, part number, QTY, and Dollars.

    There are many sales orders with the same part number but differnet qty and dollars.

    Sales Date | Part number | QTY | Dollars |
    06/15/2010 | 1234 | 5 | 100 |
    06/07/2010 | 1234 | 10 | 200 |
    06/10/2010 | 1234 | 15 | 300 |

    And so on..

    What I need to be able to do is total the dollars pbased on the change in part numbers.

    can I do this in this query and if not how should I do it?

    Thanks

  2. #2
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    Remove Sales Date and QTY.
    Group by Part Number, Sum Dollars:

    Click the Totals button --it looks like Excel's Autosum button. This creates a Totals row in the grid. Edit the Totals cell in the Dollars field so it is SUM instead of GROUP BY.

  3. #3
    mulefeathers is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    39
    Quote Originally Posted by kimmer View Post
    Remove Sales Date and QTY.
    Group by Part Number, Sum Dollars:

    Click the Totals button --it looks like Excel's Autosum button. This creates a Totals row in the grid. Edit the Totals cell in the Dollars field so it is SUM instead of GROUP BY.

    Thanks for your help.

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

Similar Threads

  1. suppress subtotals when only 1 record
    By schristy in forum Reports
    Replies: 3
    Last Post: 02-15-2010, 10:00 AM
  2. Replies: 0
    Last Post: 08-07-2008, 07:02 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