Results 1 to 6 of 6

Thread: Pagecount Recordset Property

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    8

    Cool Pagecount Recordset Property

    Hi,

    I am attempting to use the pagecount property of my recordset on an asp page.

    The return value I get is '-1' which suggests an error somewhere.

    Can anyone help?

    Thank you in advance.

  2. #2
    whygod
    Guest
    RecordSet.Open str,3,3

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    8
    I had already used the cursortype and location that you suggested.

    I am beginning to think that it is a problem with a driver reference. How can I reference a specific driver on an ASP page?

    I've tried:
    <!--#include file "\gdsdrivers\msado15.dll"-->

    but that just reads the driver like a text file.

    Any ideas?

  4. #4
    whygod
    Guest
    It seems that I have never seen such a problem....
    If you just want to get the rs.count ,thy this code:

    set a=server.createobject("adodb.recordset")
    sql_a="select count(id) from book where type=0"
    set a=conn.execute(sql_a)
    response.write a(0)
    a.close
    set a=nothing

    OK?
    BTW,the #include command will link the file what you assigned and run it as ASP code.So the included file must be TXT format.
    So when you include .dll file ,the system will treat it as ASP code.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2001
    Posts
    8
    I've made a little progress.

    The .dll file has now been included as metadata, but that doesn't help.

    Something somewhere on my system is old and means that my recordset doesn't support the PageCount property.

  6. #6
    Lively Member
    Join Date
    Jan 2001
    Posts
    118
    ADO 2.6 is out. Why not use it instead of 1.5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width