|
Change the sort - probably order by ??? desc - in the query your recordset is based on, and if you're getting the information from Access or SQL Server, use Select Top 3 ???
If you wanted to go a more complex route, you could declare a variable, and increment it every time you call MoveNext, then change your loop condition to While Not rsUpdates.Eof And i < 3 ... an integer variable will start at zero, so depending on where you put the line and whether you change it to start at one, you might change that to less than four, but by default everything starts at zero.
Last edited by ForrestCroce; 08-15-2007 at 02:14 AM..
Reason: Clarify 'change the sort'
|