Hello,
I am trying to compare two numbers that are in two different columns in a query to decide which is the largest of the two. The two columns pull from separate tables.
Column 1: AR1 Points: IIf(IsNull([High AR Points]),0,[High AR Points])
Column 2: AR2 Points: IIf(IsNull([MaxOfPoints]),0,[MaxofPoints])
The third column is where I want it to select which is higher.
Column 3: Which AR is Higher?: IIf([High AR Points]>[MaxOfPoints],"AR1","AR2")
The issue I am having is that when the "IsNull" kicks in and puts a zero (0) in column 2, column 3 always selects "AR2" even if column 1 has a number.
Now it also always selects "AR2" when there is a tie, but I am less troubled with that than the above.
Your guidance is appreciated!
Mike