P
Paul M
Hi
I have created a connection to a database but I get the following error
What can be the cause of such an error
.........................................................................
ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed
or invalid in this context.
........................................................................................
Here is the code
If Len(ipMemberID)>0 AND IsNumeric(ipMemberID) Then
sUpdate="SELECT * FROM tblMembers WHERE ID=" & ipMemberID
Set opConnection=Server.CreateObject("ADODB.Connection")
Set opRecordset=Server.CreateObject("ADODB.Recordset")
opRecordset.open sUpdate, opConnection
If NOT opRecordset.Eof Then
sUpdate = "UPDATE ( sql here)
opConnection.execute(sUpdate)
'Close the recordset object
opRecordset.Close
Set opRecordset=Nothing
%>
I have created a connection to a database but I get the following error
What can be the cause of such an error
.........................................................................
ADODB.Recordset error '800a0e7d'
The connection cannot be used to perform this operation. It is either closed
or invalid in this context.
........................................................................................
Here is the code
If Len(ipMemberID)>0 AND IsNumeric(ipMemberID) Then
sUpdate="SELECT * FROM tblMembers WHERE ID=" & ipMemberID
Set opConnection=Server.CreateObject("ADODB.Connection")
Set opRecordset=Server.CreateObject("ADODB.Recordset")
opRecordset.open sUpdate, opConnection
If NOT opRecordset.Eof Then
sUpdate = "UPDATE ( sql here)
opConnection.execute(sUpdate)
'Close the recordset object
opRecordset.Close
Set opRecordset=Nothing
%>