Can I include/not include sums in Access Reports based on dates?
Posted on 2011-02-24
I have a report designed so it shows issued policies within 0-15 days of the renewal date, same for 16-30 and 31-60 days and also for anything greater than 60 days.
All total numbers are correct, however, if I was to say that I only want to see figures in relation to the dates I put in how would I go about it? Currently if I put from the 1st Feb to the 28th Feb it will still show the total figure for anything greater than 60 days and total up the policy count which therefore gives a slightly inaccurate figure.
The query is as shown below, (bear in mind there are two further queries created before this):
SELECT qry_contract_certainty_average.CountOfcontract_certainty_time, qry_contract_certainty_average.AvgOfcontract_certainty_time, qry_contract_certainty_average.SumOfNegative, qry_contract_certainty_average.[SumOf0-15 days], qry_contract_certainty_average.[SumOf16-30 days], qry_contract_certainty_average.[SumOf31-60 days], qry_contract_certainty_average.[SumOf>60 days], qry_contract_certainty_average.CountOfInsurer_Docs_issued1, [CountOfInsurer_Docs_issued1]-[CountOfcontract_certainty_time] AS Expr2, ([SumOf16-30 days]+[SumOf0-15 days]+[SumOfNegative])/([CountOfInsurer_Docs_issued1]) AS Expr3
So the dates are text fields that are placed in the form where the user enters in the dates and the report will take those dates and use the renewal date field to show records only between those dates.
Any advice or direction would be much appreciated, thanks.