|
-
Jun 18th, 2001, 02:28 AM
#1
Thread Starter
New Member
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.
-
Jun 18th, 2001, 04:15 AM
#2
-
Jun 18th, 2001, 04:37 AM
#3
Thread Starter
New Member
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?
-
Jun 20th, 2001, 11:46 PM
#4
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.
-
Jun 22nd, 2001, 02:14 AM
#5
Thread Starter
New Member
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.
-
Jun 22nd, 2001, 06:35 AM
#6
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|