- differences between jet and odbc
- sugarcrm not inserting email
- select random records from access
- button click event firing twice
- how to send an email using cdosys
- installing perl on win2003 64 bit
- asp.net page event order
- rewrite rule for subdomains only
- extra items in javascript array
- IE7 margin auto not working
- IE7 border style dotted glitch
- ByRef and ByVal in vbscript
- weather rss feed
- Classic asp crib sheet
- Firefox onsubmit image change
- limit records in access
- AccessDataSource is thick
- double margins in IE6
- extra image padding in html emails
- decimal places in linux flash player
- broken emails in outlook 2007
- double spaced IE list items
- cannot remove movieclip
articles:
limit records in access
Well you can't, but this is a neat way of emulating it:
Example table:
columnA and columnB. The table has more than 10 records in it. We want to retrieve records 6 to 10 only.
SELECT * FROM (SELECT TOP 5 columnA, columnB FROM (SELECT TOP 10 columnA, columnB FROM table ORDER BY columnB DESC ORDER BY columnB ASC) ORDER BY columnB DESC
So we get the top 10 records sorted one way, flip them and take the top 5 then flip them back to give us what would have been records 6 to 10.
This also works in SQL server.