Is there anyway to turn a crosstab query into a top ten query if the crosstab query is based on a date range.
See code below:
See code below:
Code:
PARAMETERS [Forms]![Queries_ReportsFRM]![StartDateTxt] DateTime, [Forms]![Queries_ReportsFRM]![EndDateTxt] DateTime;
TRANSFORM Sum([Trend1-3TON-MONTH_1].[Mechanical Totals]) AS [SumOfMechanical Totals]
SELECT [Trend1-3TON-MONTH_1].SystemGroup
FROM [Trends-1-3TON-MONTH] AS [Trend1-3TON-MONTH_1]
GROUP BY [Trend1-3TON-MONTH_1].SystemGroup
PIVOT [Trend1-3TON-MONTH_1].YearMonth;