RE: How to compare fields
- From: Luther <Luther@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 Sep 2005 13:36:02 -0700
Sure...
SELECT
Max(IIf(IIf([POSEN1]>[POSEN2],[POSEN1],[POSEN2])<[POSEN3],[POSEN3],IIf([POSEN1]>[POSEN2],[POSEN2],[POSEN1]))) AS POS_MAX
FROM HIPlanNames;
the test values were posen1=50000, posen2=20000, posen3=21562
"Ofer" wrote:
> I would like to know the answer to this question also, if you'll get no
> better answer, try this
>
> IIF(IIF(Field1>Field2,Field1,Field2)<Field3,Field3,IIF(Field1>Field2,Field1,Field2)))
>
> --
> I hope that helped
> Good luck
>
>
> "Luther" wrote:
>
> > Hi,
> >
> > I need to compare three numeric fields and pick the greater of the three; I
> > will then have to use that number in subsequent calculations.
> >
> > Any help with this will be greatly appreciated.
> >
> > Thanks.
.
- Follow-Ups:
- RE: How to compare fields
- From: Ofer
- RE: How to compare fields
- References:
- How to compare fields
- From: Luther
- RE: How to compare fields
- From: Ofer
- How to compare fields
- Prev by Date: Create records using defaults
- Next by Date: RE: Parameter from Form
- Previous by thread: RE: How to compare fields
- Next by thread: RE: How to compare fields
- Index(es):
Relevant Pages
|