Solved

Select a particular set of records from MSACCESS table

Posted on 2007-03-26
3
278 Views
Last Modified: 2010-04-25
I have 10 asp pages. I have an MSACCESS table with say some 300 records. I want to select last 10 records ie. rows 290-300 from the table and display it in the first asp page. Then, I want to select the rows 280-290 in the second asp page etc....The number of records in the table are not limited to 300, it keeps growing. I want a select query to take the last 10 records. I have an answer for that,
"select top 10 * from link order by id desc"
This query returns the latest 10 rows from the table, ie. rows 290-300
Now I want to select the rows 280-290. Is there any select query for that. Or can I achieve that is asp coding?

Any hep is appreciated
Thank you.
0
Comment
Question by:CWS (haripriya)
3 Comments
 
LVL 11

Accepted Solution

by:
walkerke earned 250 total points
ID: 18798211
0
 
LVL 9

Expert Comment

by:TheSloath
ID: 18798248
select top 10 * from link WHERE id <= 290 order by id desc
0
 
LVL 8

Expert Comment

by:jawahar_prasad
ID: 18798963
Hi...
I think you need pagination script...

here is a complete solution for your problem...
http://www.aspin.com/home/tutorial/database/display/pagingre
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question