Hi,
I need to know how many records there are in a ado-recordset: i did this:
<%
Set objDC = Server.CreateObject("ADODB.Connection")
ObjDC.open = "provider=msdasql; driver={microsoft access driver (*.mdb)};
dbq=c:\inetpub\wwwroot\res.mdb"
sql="select name from studres where ... ;"
set rs=objDC.execute(sql)
rec=rs.recordcount
response.write(rec)
%>
but i always get -1 !
Any reason for this and how to get the real amount?
Thanks
fil