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!

Problem with RecordSet.RecordCount

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
0
0
US
Hi I keep getting -1 when I call rs.recordcount, Why?

set rs=Server.CreateObject("ADODB.Recordset")
rs.CursorType = 3
rs.open sql,conn
response.write(&quot;<th>Total Records Found: &quot;&rs.RecordCount&&quot;</th>&quot;)%>

The rest of the code works fine, its just when I try to return the total records returned. I am using Sybase Database. Let me know if you need further data.
 
search the forum for the question. It has been answered multiple times also

_____________________________________________________________________
[sub]You can accomplish anything in life, provided that you do not mind who gets credit.
Harry S. Truman[/sub]
onpnt2.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top