Normalization issues aside... using IIF should do the trick.
I tried it using a sample table that I called tblNumbers with Num1,
Num2 and Num3 as my field names. It worked with no problem. Here's
the SQL
SELECT
IIf([Num1]>[Num2] And [Num1]>[num3],[num1]) AS Expr1,
IIf([num2]>[num1] And [num2]>[num3],[num2]) AS Expr2,
IIf([num3]>[num1] And [num3]>[num2],[num3]) AS Expr3
FROM tblNumbers;
As you can see I didn't bother to give meaningful names to the
expressions, hence the Expr1, Expr2 and Expr3.
Should someone compare three numbers? Well, I guess I can imagine a
scenario where they might, like a listing of items that each have a
StartValue, EndValue and ValueGoal. Those could be three discrete
values stored for a single record that would seem acceptable to me.
Just a thought. (Although as soon as I click "send" it will become
clear to me why I'm wrong...)
Betsy