Computer Learning Zone CLZ Access Excel Word Windows

With guns you can kill terrorists, with education you can kill terrorism.

-Malala Yousafzai
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > ASP
Back to Active Server Pages Forum    Comments List
Pagination Upload Images   Link   Email  
Joe Hood 
Hello Everyone,

I would like to add pagination to a table on my ASP web page. All the examples that I can find use recordcount and pagecount properties of the recordset as part of their solution. My site does not support either of these properties, they return a -1 value. I attached a copy of the code that constructs my table. There can be anywhere from 1 to 100's of records depending on the job history requested. Can anyone please point me in the right direction.  

Thanks - Joe
Joe Hood 

Alex Hedley 
Sorry I only wrote this up a few years ago:
Paging Tip
Alex Hedley 
You could instead do a single query to get record count, then do a TOP X query with a WHERE that gets the next set maybe based on a date, or the ID, depends how you are sorting it
Richard Rost 
You've got to open the recordset with the correct cursor type (3, I believe) in order for RecordCount to work.
Joe Hood 
You Guys are the Best. recordcount is now working fine - Thank You Richard

I am sure Pagination will be working as well, just as soon as I finish watching Alex's Paging Tip (Videos make it so much easier :)). - Thank You Alex
Richard Rost 
You're very welcome. I usually handle my pagination by remembering a detail of the last record, such as the OrderDate, CustomerID, whatever you're sorted by, then I make the link to go NEXT as

"... WHERE OrderDate>'" & LastOrderDate & "'"

Going backwards is always a pain. But Alex has a really good tip.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Active Server Pages Forum.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/28/2024 9:12:09 AM. PLT: 0s