J
JeffS66
I followed/modified the "Criteria" in Microsoft KB Q153747 but do not
get the desired results. Instead of returning the Top-10 per Group
(LOC) I only get the Top-10 across all groups ... the same as if I use
the Top Values box in the query design tool bar.
Here is my SQL ... Any assistance is greatly appreciated!
SELECT [tbl_Short Lines by LOC].LOC, [tbl_Short Lines by LOC].PART,
[tbl_Short Lines by LOC].ITMDSG, [tbl_Short Lines by LOC].DSC,
[tbl_Short Lines by LOC].MPRODCAT_DSC, [tbl_Short Lines by LOC].[SHORT
LINES]
FROM [tbl_Short Lines by LOC]
WHERE ((([tbl_Short Lines by LOC].[SHORT LINES]) In (Select Top 10
[SHORT LINES] From [tbl_Short Lines by LOC] Where [LOC]=[tbl_Short
Lines by LOC].[LOC] Order By [SHORT LINES] Desc)))
ORDER BY [tbl_Short Lines by LOC].LOC, [tbl_Short Lines by LOC].[SHORT
LINES] DESC;
Thank you in advance.
Jeff
get the desired results. Instead of returning the Top-10 per Group
(LOC) I only get the Top-10 across all groups ... the same as if I use
the Top Values box in the query design tool bar.
Here is my SQL ... Any assistance is greatly appreciated!
SELECT [tbl_Short Lines by LOC].LOC, [tbl_Short Lines by LOC].PART,
[tbl_Short Lines by LOC].ITMDSG, [tbl_Short Lines by LOC].DSC,
[tbl_Short Lines by LOC].MPRODCAT_DSC, [tbl_Short Lines by LOC].[SHORT
LINES]
FROM [tbl_Short Lines by LOC]
WHERE ((([tbl_Short Lines by LOC].[SHORT LINES]) In (Select Top 10
[SHORT LINES] From [tbl_Short Lines by LOC] Where [LOC]=[tbl_Short
Lines by LOC].[LOC] Order By [SHORT LINES] Desc)))
ORDER BY [tbl_Short Lines by LOC].LOC, [tbl_Short Lines by LOC].[SHORT
LINES] DESC;
Thank you in advance.
Jeff