i have a set of criteria where the flag is checked if five or more things happen two consecutive months. In order for the flag to be unchecked, two consecutive months need to pass with less than five things happening.
At the moment, i have a query that looks at the previous 4 months, but it is possible that a client will meet the criteria with 2 months > 5, then have 4 consecutive months with a patter of <5,>=5,<5,>=5, so that it should qualify, but will appear not to qualify.
What is the best way to either query back to the first month, or to have an update query or VBA that will check or uncheck the box only if the previous two months have been >=5 or <5? I also need it to output a report fitting into certain buckets:
Applies
Applies - Added to list
Applies - First month <5 lines
Does not apply - First month >5 lines
Does not apply
Does not apply - Drops off list
Thanks!
At the moment, i have a query that looks at the previous 4 months, but it is possible that a client will meet the criteria with 2 months > 5, then have 4 consecutive months with a patter of <5,>=5,<5,>=5, so that it should qualify, but will appear not to qualify.
What is the best way to either query back to the first month, or to have an update query or VBA that will check or uncheck the box only if the previous two months have been >=5 or <5? I also need it to output a report fitting into certain buckets:
Applies
Applies - Added to list
Applies - First month <5 lines
Does not apply - First month >5 lines
Does not apply
Does not apply - Drops off list
Thanks!