This is probably an easy one for you out there, but I want to know the number of records in my recordset. I tried rs.Recordcount but that gives me a -1. How can I get the number of records?
Here is what I have and it still produces -1 for the recordcount:
<%
strConnection = "Driver={SQL Server};Server=(local);Uid=myUID;Pwd=myPwd;Database=myDB"
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.Open strConnection
Set objRS = Server.CreateObject("ADODB.Recordset"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.