BrainLeech
Programmer
I have a problem with one of my pages not connecting to the SQL database. This is the error I recieve when attempting to view the page:
ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
This is the code that is producing the error:
I assume that I am missing a simple line of information or something, but I am new to both SQL and ASP. If more code or info is needed let me know.
ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
This is the code that is producing the error:
Code:
<%
Dim conn
Dim rsDocuments
set conn = server.CreateObject("adodb.connection")
set rsDocuments = server.CreateObject("adodb.recordset")
rsDocuments.Open "SELECT ID FROM tblDocuments WHERE IDStudent=" & session("IDStudent"), conn,adOpenKeyset,adLockReadOnly
dim numDocs
numdocs = rsDocuments.RecordCount
if not rsDocuments.BOF then
dim FldID
set FldID=rsDocuments("id")
do while not rsDocuments.EOF
%>
I assume that I am missing a simple line of information or something, but I am new to both SQL and ASP. If more code or info is needed let me know.