IPT
Sat Jun 26 20:49:42 CDT 2004
I went to the web, and still unable to get it work.
My codes:
sSQL = "SELECT * FROM myTable"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sSQL, myConn, 1, 3
recCount = rs.recordcount
rs.Close
Set rs = Nothing
response.write recCount
It returns -1.
Help!
> Serge Myrand wrote:
> > Hi,
> >
> > I have an ADODB.RecordSet that RecordCount alway return -1 and this
> > RecordSet is plenty of record!
> >
> Your answer will be found here:
>
http://www.aspfaq.com/show.asp?id=2193
>
> HTH,
> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>