S
Sean
I have a table full of items, below is one example from the table. I am
trying to do a query that will display the longest dimension (as L1) for each
item. Item field is text, all others are numbers.
Here is my data:
Item = Y10227
ItemLength = 8.375
ItemWidth = 9.25
ItemHeight = 5.125
Here is the field in my query to determine the largest of the dimensions:
L1: IIf([ItemLength]>[ItemHeight] And
[ItemWidth],[ItemLength],IIf([ItemHeight]>[ItemLength] And
[ItemWidth],[ItemHeight],IIf([Itemwidth]>[itemheight] And
[itemlength],[itemwidth])))
The result I am getting is L1 = 8.375 which is not the largest of the
dimensions, ItemWidth at 9.25 is. What am I missing?
Thanks,
trying to do a query that will display the longest dimension (as L1) for each
item. Item field is text, all others are numbers.
Here is my data:
Item = Y10227
ItemLength = 8.375
ItemWidth = 9.25
ItemHeight = 5.125
Here is the field in my query to determine the largest of the dimensions:
L1: IIf([ItemLength]>[ItemHeight] And
[ItemWidth],[ItemLength],IIf([ItemHeight]>[ItemLength] And
[ItemWidth],[ItemHeight],IIf([Itemwidth]>[itemheight] And
[itemlength],[itemwidth])))
The result I am getting is L1 = 8.375 which is not the largest of the
dimensions, ItemWidth at 9.25 is. What am I missing?
Thanks,