Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset.RecordCount

Status
Not open for further replies.

damann

Technical User
Jul 19, 2000
114
0
0
US
Does anyone know why Recordset.RecordCount always outputs a value of -1? Please let me know, it's giving me a headache...
 
If your provider does not support the count property a value of -1 will always be returned. I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
 
Try to open your Recordset cursor location as clint side before rs.open statement

rs.CursorLocation = adUseClient
 
No. You have to set the cursor to "adOpenKeyset" when opening the database!
 
If you use it in ASP, for better perfomance use adOpenStatic and if you are not going to change the data, make it ReadOnly in your LockType, your cursor location got nothing to do.

Believe me, is the better performance you will get besides a Firehose (ForwardOnly and ReadOnly)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top