I’m trying to select the highest value where there are multiple records in other fields. All I need to see is highest payment from the PAYMENT field or flag it by High or Low.
IIf(IsNull([PAYMENT]),"",IIf(DMax("PAYMENT","tblcostamount","[PAYMENT] = '" & [PAYMENT] & "'")>1,"High","Low"))
Example:
LOTNUM LOCAL PAYMENT
5241246621 211D5 47
5241246621 211D5 111
3251247894 362W2 56
3251247894 362W2 159
3621245512 55S221 131
3621245512 55S221 37
So, from the example I would flag or see row 2,4 and 5.
IIf(IsNull([PAYMENT]),"",IIf(DMax("PAYMENT","tblcostamount","[PAYMENT] = '" & [PAYMENT] & "'")>1,"High","Low"))
Example:
LOTNUM LOCAL PAYMENT
5241246621 211D5 47
5241246621 211D5 111
3251247894 362W2 56
3251247894 362W2 159
3621245512 55S221 131
3621245512 55S221 37
So, from the example I would flag or see row 2,4 and 5.