I want to count the number of records in a recordset, but it always gives '-1' as a result.
Here's my code:
SET RS_products = Server.CreateObject("ADODB.RecordSet"
sSQL = "SELECT Id, naam, korte_beschr_" & sLang & " FROM producten WHERE subject_Id = " & sId
SET RS_products = conn.Execute(sSQL)
Response.Write(RS_producten.RecordCount)
What's wrong with this? I don't have a clue...
Thank you,
Steven
Here's my code:
SET RS_products = Server.CreateObject("ADODB.RecordSet"
sSQL = "SELECT Id, naam, korte_beschr_" & sLang & " FROM producten WHERE subject_Id = " & sId
SET RS_products = conn.Execute(sSQL)
Response.Write(RS_producten.RecordCount)
What's wrong with this? I don't have a clue...
Thank you,
Steven