S
scratchtrax
I am building a query in design view and I am attempting to select records
within a column that exclude the highest and lowest values (prices).
The table is named tblITEMS and I am attempting to use Dmin and Dmax as
criteria to exclude the highest and lowest records. Within design view I
show the ITEM column and the UNITPRICE column. In the criteria for the
UNITPRICE I put:
">DMin("UNITPRICE","tblITEMS")"
This returns all but the lowest values for each ITEM in the table - works
correctly, or as I am hoping that it will.
Now, same scenerio only this time I put: "<DMax("UNITPRICE","tblITEMS")" in
the criteria of UNITPRICE and it will only remove or exclude the highest
value for the whole column (in all of the table) and not the highest value
for each ITEM as it did with Dmin.
I can only assume that I'm supposed to add more to the criteria but I don't
know what exactly as I am hoping to do this for each ITEM category throughout
the table.
Thanks for listening, I'd be grateful for any thoughts regarding these
differences.
within a column that exclude the highest and lowest values (prices).
The table is named tblITEMS and I am attempting to use Dmin and Dmax as
criteria to exclude the highest and lowest records. Within design view I
show the ITEM column and the UNITPRICE column. In the criteria for the
UNITPRICE I put:
">DMin("UNITPRICE","tblITEMS")"
This returns all but the lowest values for each ITEM in the table - works
correctly, or as I am hoping that it will.
Now, same scenerio only this time I put: "<DMax("UNITPRICE","tblITEMS")" in
the criteria of UNITPRICE and it will only remove or exclude the highest
value for the whole column (in all of the table) and not the highest value
for each ITEM as it did with Dmin.
I can only assume that I'm supposed to add more to the criteria but I don't
know what exactly as I am hoping to do this for each ITEM category throughout
the table.
Thanks for listening, I'd be grateful for any thoughts regarding these
differences.