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));