Results 1 to 5 of 5
  1. #1
    cfobare79 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    66

    Report Field Summing

    I have a report called Data Network that is fed from a query called ABCData which in fed by the table PinnacleTable. I have the query activated from a filter form I created. What I would like to happen is that when I select my Date Range, AngencyID and Report Type that only a sum of the field Quantity is displayed on the report. It is currently working in a way that it only will display the most recently dated records Quantity. I have displayed the query code below. Thank you...

    SELECT RateTable.ServiceName, RateTable.Rate, RateTable.Unit, RateTable.ServiceGroup, PinnacleTable.Quantity, PinnacleTable.BillingPeriod, PinnacleTable.[CLASS_OF_SERVICE], AgencyList.AgencyID, AgencyList.AgencyName, AgencyList.Address, AgencyList.ZipCode, ZipCodeT.City, ZipCodeT.State


    FROM ZipCodeT INNER JOIN (AgencyList INNER JOIN (RateTable INNER JOIN PinnacleTable ON RateTable.ServiceID=PinnacleTable.[CLASS_OF_SERVICE]) ON AgencyList.AgencyID = PinnacleTable.AgencyID) ON ZipCodeT.ZipCode = AgencyList.ZipCode
    WHERE (((PinnacleTable.BillingPeriod)>=Forms!Filter!Comb o0 And (PinnacleTable.BillingPeriod)<=Forms!Filter!Combo2 ) And ((AgencyList.AgencyID)=Forms!Filter!Combo4));

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    where (PinnacleTable.BillingPeriod) between Forms!Filter!Combo0 and Forms!Filter!Combo1

    Is it NOT pulling days in this date range?

  3. #3
    cfobare79 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    66
    The Combo0 and Combo1 are the date ranges. BillingPeriod is the date of the service provided. Currently it is only pulling the data from the most recent BillingPeriod that falls in the requested date range stated from the Combo boxes. What I would like it to do is combine all Quantities that fall in the data range.

    Is it something that I would need to do in the Report? I'm not sure if the criteria in the Report would need to be modified....

  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,771
    Options:

    1. base the report on an aggregate query that returns only the one value

    2. base the report on the posted query and do aggregate calcs in report header/footer section, don't put any controls in Detail section and size it to 0 height or set as not visible
    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.

  5. #5
    cfobare79 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Dec 2014
    Posts
    66
    Thank you very much. The problem I was having was that I kept the BillingPeriod in the query. So all other fields were the same except BillingPeriod and Quantity. By removing BIllingPeriod it allowed the query to merge all the rest of the data. Solved. Solved

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

Similar Threads

  1. Replies: 1
    Last Post: 02-27-2014, 07:59 PM
  2. Summing Multiple Queries & Summing Time
    By WEJ in forum Queries
    Replies: 2
    Last Post: 10-04-2013, 04:46 PM
  3. Summing in Report
    By joeydeck in forum Access
    Replies: 14
    Last Post: 03-13-2013, 02:38 AM
  4. Summing one field value to another
    By George in forum Access
    Replies: 6
    Last Post: 08-06-2012, 01:58 PM
  5. Summing Report Totals
    By bugme in forum Reports
    Replies: 3
    Last Post: 05-09-2011, 09:36 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