Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 May 13th, 2004, 09:17 PM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default recordcount & absoluteposition

hi,

I am totally new in asp

I am using a data link to connect to my database (mySQL).
rs.open "" & strsql & "","FILE NAME=c:\Inetpub\wwwroot\machine.udl"

However, I cant used recordcount & absoluteposition in my application. It always return '-1' to me. I am wondering what's wrong in my code??

advanced thanks for those who able to help.

 
Old May 13th, 2004, 09:38 PM
Authorized User
 
Join Date: Jun 2003
Location: Melbourne, Victoria, Australia.
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default

Hi cici,

The reason you get the return of -1 is because you have not set your cursor and by default you will have the minimium cursor adForwardOnly. to count records you would need to set atleast adOpenStatic.

Kens got some good info @ http://www.adopenstatic.com/faq/jetcursortypes.asp

Good Luck

Tim

TDA
 
Old May 14th, 2004, 06:54 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks a lot. it really works!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
RecordCount & CursorLocation (SQL) interrupt Javascript How-To 1 December 18th, 2006 08:35 AM
AbsolutePosition counting filtered records Brad_S VB Databases Basics 1 August 17th, 2006 04:24 AM
RecordCount dpkbahuguna Beginning VB 6 9 March 23rd, 2006 01:16 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
recordcount & stored procedures eddiema Classic ASP Databases 2 October 9th, 2003 10:54 AM





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