I have a query that returns duplicate records based on a selectable threshold (count) from a year’s worth of data. I have modified this to select records from selectable periods (1 week, 1 Month 6 months etc) via a form input to the criteria for date selection. This works except that the query still returns records that have a value equal to or exceeding the threshold (count) setting which fall outside the selected date range.
For example if I ask for records where the count exceeds 25 during the past seven days it will only show details of records within the seven day period but where the count exceeds 25 over a longer period. How should I modify the query to show just those records that are duplicated according to the count criteria and are within the selected date periods only?
I have tried reordering the query fields but with no success, this is probably simple but I can’t fathom it!
For example if I ask for records where the count exceeds 25 during the past seven days it will only show details of records within the seven day period but where the count exceeds 25 over a longer period. How should I modify the query to show just those records that are duplicated according to the count criteria and are within the selected date periods only?
I have tried reordering the query fields but with no success, this is probably simple but I can’t fathom it!