RecordCount in aspVBScript page

S

Steve Conway

Hello all,

I have a recordset in an asp page

snippet
Set Search = Server.CreateObject("ADODB.Recordset")
etc.
etc.

The recordset is working fine, the page displays the correct results. I am
just trying to include a "n Records Found" display using:
<%
iRecordCount = Search.RecordCount
%>

but Search.RecordCount always has a value of -1 whether there are 10 records
or no records. Therefore, my 'Records Found' always shows -1. Am I missing
something regarding .RecordCount

Thanks
Steve C
 
S

Steve Conway

Thanks Stefan, that was the issue. Using the GetRows() solution works just
fine

Steve C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top