Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 26th, 2005, 02:22 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default WHy does it show 1 record per page instead of 10?

http://k.domaindlx.com/gemetria/kjvr...s&optAction=on
Each page is skipping 20 records. First page shows id # 21944 and page 2 shows 21964.

The next page ( 3rd ) shows:
Quote:
quote:
ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/gemetria/kjvresp5.asp, line 0
This is the SQL:
Quote:
quote:SELECT * FROM hebbooktable INNER JOIN hebrewbibletable ON hebbooktable.book = hebrewbibletable.book WHERE chapter LIKE '5' AND (recordType = 'da') ORDER BY id ASC


Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm
 
Old April 26th, 2005, 11:06 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

The error which you specified is coming because, you are trying to access some data after closing the recordset.

Please provide some more information like about pagination code?



Om Prakash
 
Old April 27th, 2005, 11:03 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default

I have the database table open and have found it by searching it myself.


But to help you out, since the full code in the file is long, I think this is where something goes wrong.

Code:
    If Len(Request("page")) = 0  Then
        rs.AbsolutePage = 1
      Else
        If CInt(Request("page")) <= rs.PageCount Then
            rs.AbsolutePage = Request("page")
          Else
            rs.AbsolutePage = 1
        End If
    End If

    Dim abspage, pagecnt
      abspage = rs.AbsolutePage
      pagecnt = rs.PageCount




I also think there is something wrong in this section:

Code:
if rs.bof and rs.eof then
       Response.Write "No records found!"
Else
    If Not rs.EOF Then%>
       <center>
       <form>...


Because when the search cannot find a query it shows error.

Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm





Similar Threads
Thread Thread Starter Forum Replies Last Post
show data record in grid view - sqlserver2005 vinodonline2000 ASP.NET 2.0 Basics 5 August 10th, 2007 05:24 AM
The last empty record in table should not show alie VB Databases Basics 4 March 9th, 2006 07:38 AM
show one record if there are duplication yylee Access 1 January 9th, 2005 05:57 AM
show the record number yami56 Access 9 April 5th, 2004 08:35 PM
Find Record Combo Box Wizard Won't Show 3rd Choice HenryE Access 0 February 2nd, 2004 11:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.