Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: RE: RecordCount = -1


Message #1 by "Samir Chitkara , Gurgaon" <chitkaras@g...> on Fri, 3 Jan 2003 12:57:03 +0530
you should use adoROCOL.cursorlocation=3 before opening the recordset.


-----Original Message-----
From: Bhupendra_Sharma@r... [mailto:Bhupendra_Sharma@r...]
Sent: Saturday, December 07, 2002 10:31 AM
To: ASP Databases
Subject: [asp_databases] RecordCount = -1
Importance: High


I'm having this code in one of my ASP's
set adoROCOL = createobject("adodb.recordset")
adoROCOL.open sqlstr, conn, adOpenStatic, adLockOptimistic
response.write adoROCOL.recordcount
still why is it that i'm getting the result as -1

can somebody please help me
regards




  Return to Index