I have a report that displays a bar graph of bad parts which are sorted in descending order of the part number with the most failures but I also want to limit the number of failed parts displayed to the top 5 parts. The row source of my chart looks like this:
----------
SELECT ([Part Number]) AS Expr1, (Count([Part Number])) AS [Bad Parts] FROM [Bad Part qry] GROUP BY [Part Number] ORDER BY (10000- (Count([Part Number])));
----------
How can I limit the number of entries in the bar graph to display the 5 most failed parts?
Thanks in advance!
----------
SELECT ([Part Number]) AS Expr1, (Count([Part Number])) AS [Bad Parts] FROM [Bad Part qry] GROUP BY [Part Number] ORDER BY (10000- (Count([Part Number])));
----------
How can I limit the number of entries in the bar graph to display the 5 most failed parts?
Thanks in advance!