Do you acknowledge that for the criteria from any row in Data
[pre]
Type: Invoice
Status: A2
Department: A002
Count: 4
Month: 3.00
[/pre]
...that there are, according to the criteria in Table, 3 Return Comments that match, only the first of which can be returned.
Those 3 are:
[pre]
Type Status Department Count Month Return Comments
Invoice A2 <> A001 <=4 <=3 Outcome5
Invoice A2 <> A001 >=4 >=3 Outcome9
Invoice A2 <> A001 <=4 >=3 Outcome13
[/pre]
...because the proper way of coding an expression is
Either...
<=x or >x
Or
<x or >=x
But in no case is it proper to put the
EQUAL into both the
GREATER and
LESSER! That introduces AMBIGUITY!
ONE way of correcting this might look like this...
[pre]
Type Status Department Count Month Return Comments
Invoice A2 <> A001 <4 <=3 Outcome5
Invoice A2 <> A001 >=4 >3 Outcome9
Invoice A2 <> A001 <4 >3 Outcome13
[/pre]
Do you acknowledge that for the criteria from any row in Data...
[pre]
Type: Payment
Status: N/A
Department:
Count:
Month: 12.00
[/pre]
...that there are, according to the criteria in Table, 0 Return Comments that match. This may be exactly what you intend. I only bring this up, because of the error you introduced and continue to ignore in the Count and Month above.
Skip,
Just traded in my OLD subtlety...
for a NUance!![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein