Solved

Select a particular set of records from MSACCESS table

Posted on 2007-03-26
3
255 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HasData 9 36
Would like Regex to return a string array with no duplicates. 3 27
Access Excel export not behaving 2 25
Access 2003, sort table via code 5 0
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now