S
scratchtrax
I have got a query that I thought was doing what I wanted, but now I'm not
sure.
I am using the following:
<DMax("UnitPrice","tblItems","ITEMNAMEDESCRIPTION = """ &
Replace([ITEMNAMEDESCRIPTION],"""","""""") & """") And
I am hoping that this will look up a series of prices, remove the highest
and lowest values and return the remaining numbers.
For example, the group of numbers before using the above expression is:
$300, $300, $300 & $640. It is supposed to be that after removing the
highest and lowest values, that would remove all the numbers from this
series. What I am hoping for here is to get nothing returned as there are
only two different numbers in this group of numbers.
However when I use the above expression I get the following returned: $300,
$300 & $300.
It almost seems like it runs and works with the first part of the expression
but not the second. Is it a syntax error or is the whole thing incorrect?
I previously posted a similar question entitled 'Dmin Vs Dmax in query
design' and Allen Browne was kind enough show me what I needed, thank you
again Allen. I will revisit your previous suggestions and see if I can't
find what is wrong.
sure.
I am using the following:
<DMax("UnitPrice","tblItems","ITEMNAMEDESCRIPTION = """ &
Replace([ITEMNAMEDESCRIPTION],"""","""""") & """") And
Replace([ITEMNAMEDESCRIPTION],"""","""""") & """")DMin("UnitPrice","tblItems","ITEMNAMEDESCRIPTION = """ &
I am hoping that this will look up a series of prices, remove the highest
and lowest values and return the remaining numbers.
For example, the group of numbers before using the above expression is:
$300, $300, $300 & $640. It is supposed to be that after removing the
highest and lowest values, that would remove all the numbers from this
series. What I am hoping for here is to get nothing returned as there are
only two different numbers in this group of numbers.
However when I use the above expression I get the following returned: $300,
$300 & $300.
It almost seems like it runs and works with the first part of the expression
but not the second. Is it a syntax error or is the whole thing incorrect?
I previously posted a similar question entitled 'Dmin Vs Dmax in query
design' and Allen Browne was kind enough show me what I needed, thank you
again Allen. I will revisit your previous suggestions and see if I can't
find what is wrong.