Results 1 to 4 of 4
  1. #1
    raiderman69 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2

    Smile Getting Totals between 2 Dates


    Hello,

    Anybody that can assist me with building a query utilizing Query Wizard or Query Design to will allow me to find the total of all the numbers in a specific field between 2 dates with
    the data coming from 1 table.
    Simply put, I would like to be able to choose the date range and have my query give me a single grand total not each individual entry between the chosen date range.

    Any Help would be greatly appreciated.
    Thanks in Advance

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,965
    This is an aggregate (Totals) query without any grouping.

    Open query designer, select the table, click Totals on the ribbon, select field to sum, make choices in grid.

    The resulting SQL statement will be like:

    SELECT Sum([quantity field]) AS SumQty WHERE [date field] BETWEEN [enter start date] AND [enter end date];

    That should result in a single record with a single field.

    Access Help has more info.
    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.

  3. #3
    raiderman69 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Posts
    2
    Thanks June7,

    I figured out how to get the totals with your advice and some other suggestions on the internet.
    I was wondering if there was a way to figure out the totals of Field going top to bottom and left to right.
    Backround info.
    All Data is coming from 1 table.
    the column layout of my query is listed below
    Column 1 Column 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8
    Date Name Total Total Total Total Text Grand Total (of all the Numeric Columns to the left of this column)

    I was wondering if I could get the Totals from each of the above columns in the last row of my query.

    Also, How can I get my report to fit a access report to fit on 1 Page, I have tried to mess with page setup till I almost had a nervous breakdown.

    Thanks In Advance June7 and Thanks to Anyone Else with some suggestions.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,965
    Open table or query in datasheet view, click Totals button on the Home tab. This will open a row at bottom of query. Pick the desired function under each field. However, these calcs are not actually in the table and will not show in form or report. That will required calcs in textboxes in footer sections.

    Why does your report not fit on one page? Are there too many records? Attach screen shot of the report in design view.
    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: 7
    Last Post: 07-11-2013, 10:45 AM
  2. Replies: 3
    Last Post: 06-27-2013, 10:18 AM
  3. Unusual Sub Totals & Totals in Groups.
    By Robeen in forum Reports
    Replies: 12
    Last Post: 03-20-2012, 08:55 AM
  4. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  5. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 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