Hi I keep getting the error:
Error (3709) - /mysite/Pages_Secure/mypage.asp ADODB.Recordset.
"The connection cannot be used to perform this operation. It is either closed or invalid in this context.."
strQuery = ""
strQuery = strQuery + "SET ROWCOUNT 0 "
strQuery = strQuery + "SELECT FIRSTNAME, LASTNAME, EMAIL, USER_TEAM_ID, USER_SERVICE_ID, USER_DIRECTORATE_ID "
strQuery = strQuery + "FROM Web_Users "
strQuery = strQuery + "WHERE USER_ID = '" + Cstr(lOwnerID) + "'"
CALL subOpenConnection("", "")
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open strQuery, objDBConnection
Error happens here after the open....
SUB subOpenConnection( strErrorPage, strErrorQueryArguments )
Set objDBConnection = Server.CreateObject("ADODB.Connection")
objDBConnection.ConnectionTimeout = Application("ConnectionTimeout")
objDBConnection.CommandTimeout = Application("CommandTimeout")
objDBConnection.CursorLocation = Application("CursorLocation")
objDBConnection.Open Application("ConnectionString")
END SUB
Any ideas?