Guest_imported
New member
- Jan 1, 1970
- 0
I have this code:
<OBJECT RUNAT="server" PROGID="OrdRev.cDataBase" ID="objOrd"></OBJECT>
Dim Obj
Obj = objOrd.Reload(Cint(Request.QueryString("Id"))
It calls a COM+ object which in turn run a store procedure that returns a string (message). This is a portion of the COM+ code:
Public Function Reload(ByVal OrdId As Integer) As String
Set cn = New ADODB.Connection
Set Cmd = New ADODB.Command
cn.Open sCnStrg
With Cmd
Set .ActiveConnection = cn
.CommandType = adCmdStoredProc
.CommandTimeout = 6000
.CommandText = "UTL_ReloadReviewedOrder1"
.Parameters.Append .CreateParameter("SrcOrdId", adInteger, adParamInput, , SrcOrdId)
.Parameters.Append .CreateParameter("Err_Msg", adVarChar, adParamOutput, 255, ErrMsg)
Set Rs = .Execute
End With
Each time I run the above code it gave me this error
ADODB.Fields error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal.
Can you please help?
<OBJECT RUNAT="server" PROGID="OrdRev.cDataBase" ID="objOrd"></OBJECT>
Dim Obj
Obj = objOrd.Reload(Cint(Request.QueryString("Id"))
It calls a COM+ object which in turn run a store procedure that returns a string (message). This is a portion of the COM+ code:
Public Function Reload(ByVal OrdId As Integer) As String
Set cn = New ADODB.Connection
Set Cmd = New ADODB.Command
cn.Open sCnStrg
With Cmd
Set .ActiveConnection = cn
.CommandType = adCmdStoredProc
.CommandTimeout = 6000
.CommandText = "UTL_ReloadReviewedOrder1"
.Parameters.Append .CreateParameter("SrcOrdId", adInteger, adParamInput, , SrcOrdId)
.Parameters.Append .CreateParameter("Err_Msg", adVarChar, adParamOutput, 255, ErrMsg)
Set Rs = .Execute
End With
Each time I run the above code it gave me this error
ADODB.Fields error '800a0cc1' Item cannot be found in the collection corresponding to the requested name or ordinal.
Can you please help?