thankyou genteman, for your interest, this is the final query
----------------------------------------------------------------------
TRANSFORM First(iif(IsNull([result]),"Waiting Result", IIf(Val(Nz([result],
0))=[Result],
IIf(nz([Result])<[firstoflod],"< " & [firstoflod],IIf(nz(Result)<1,
Format$(nz(Result),"Fixed"),IIf(nz(Result)<10,
Format$(Result,[SF]),IIf(nz(Result)<100,Format$((Result),"00"),IIf(nz(Result)<1000,
Format$(CInt(Int((Result)*1+0.5)/10)*10,"000"),IIf(nz(Result)<10000,
Format$(CInt(Int((Result)*1+0.5)/100)*100,"0000"),IIf(nz(Result)<100000,
Format$(CInt(Int((Result)*1+0.5)/1000)*1000,"00000"),IIf(nz(Result)<100000,
Format$(CInt(Int((Result)*1+0.5)/1000)*1000,"00000"),IIf(nz(Result)<1000000,
Format$(CInt(Int((Result)*1+0.5)/10000)*10000,"000000")))))))))),[result])))
AS FirstOfResult
SELECT a3.[Batch Number], a3.[Sample Number], a3.Expr1, a3.Expr2, a3.[Sample
Identity]
FROM a3
GROUP BY a3.[Batch Number], a3.[Sample Number], a3.Expr1, a3.Expr2,
a3.[Sample Identity]
ORDER BY a3.[Batch Number], a3.[Sample Number], a3.ColumnAlias
PIVOT a3.ColumnAlias In (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
----------------------------------------------------------------------------------------------
--
Regards
Patrick Stubbin
Brian said:
Thanks, John. I just knew there was something else out there. I even tried
IsNumber (which, of course, did not show up in the help files) before I made
the alternative. So close, and yet so far...
John Vinson said:
I have a query that is based on a text field, however, the value of the field
could on any occasion be actual text, or null or a number with or without
deicmal places,
How can i verify easily between text and number within a query usi9ng an iif
statement
Just as an alternative to Brian's sneakily elegant suggestion, try
Iif(IsNumeric([fieldname]), <something>, <something else>)
John W. Vinson[MVP]