fat controller
Slightly round the bend..
- Local time
- Today, 22:50
- Joined
- Apr 14, 2011
- Messages
- 758
I have a form with a combo that allows users to select from dates that are found in a table; as there are numerous records within the table that have the same date, I have used the min function to ensure that each date only shows once. However, the list of dates is growing, and I was wondering if there was a way to limit the list of dates to the six most recent ones?
The SQL for the combo is as follows:
The SQL for the combo is as follows:
Code:
SELECT Min([4WeeklyPayControllersHistory].ID) AS ID, [4WeeklyPayControllersHistory].[4WeeksCommencing]
FROM 4WeeklyPayControllersHistory
GROUP BY [4WeeklyPayControllersHistory].[4WeeksCommencing]
ORDER BY [4WeeklyPayControllersHistory].[4WeeksCommencing];