Results 1 to 4 of 4
  1. #1
    erikl1 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    31

    How do I run a query where the expenses of each distrubutor during a specific period are sumed?

    How do I run a query where the expenses of each distrubutor during a specific period are sumed? The query should contain only one line for each distributor.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Group by Distributor and then sum in a crosstab query and I assume you have a date field where you can sort by start and end date.
    You did not provide any real information to direct you!

    HTH

  3. #3
    erikl1 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    31
    Thank you Burrina.

    I still have problems. I did not describe my problem in sufficient detail. I try again:

    I want to extract info from a table that keeps track of expenses. The fields of interest are (a) Name of Seller, (b) Date of sale, (c) Bill (amount spent). The dates distribute over long time, and sales are repetitive. I want to make a table showing the expenses over a limited period (specified by a start and a stop date). The query should generate a list containing (a) the Names of Sellers, and (b) the amount of money spent on each seller (sum over the period).

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    As burrina suggested, do an aggregate (GROUP BY) Totals query. Access Help has guidelines on using the query builder.

    Or build a report and use Grouping & Sorting features with aggregate calcs in footer section. Again, Access Help has guidelines.

    This is really basic Access functionality. Any introductory tutorial book should have description of these techniques.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 9
    Last Post: 09-17-2014, 05:19 AM
  2. Replies: 1
    Last Post: 12-13-2013, 07:11 AM
  3. Replies: 1
    Last Post: 12-12-2012, 01:50 PM
  4. Query Help: Averages per user and period
    By Gabriel2012 in forum Access
    Replies: 3
    Last Post: 11-30-2012, 05:46 PM
  5. Query for Specific 24 hour time period
    By esh112288 in forum Queries
    Replies: 1
    Last Post: 10-23-2012, 02:16 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