H
homer
I am using ado 2.6 in ac97. The code below gave me the return values in my
two output paramenters under debug view, but the values did not get assign
into the variables( intRetCode & strRetMes). What went wrong?
Thanks!
Dim intRetCode As Integer
Dim strRetMes As String
.....
With cmd
Set .ActiveConnection = cn
.CommandType = adCmdStoredProc
.CommandText = "OP_checkValidDiscounts"
.Parameters.Append cmd.CreateParameter("@CO_Number",
adVarChar, adParamInput, 15, rsTmp!head_order_nbr)
.Parameters.Append cmd.CreateParameter("@RetCode",
adInteger, adParamOutput, 15, intRetCode)
.Parameters.Append cmd.CreateParameter("@RetMsg", adVarChar,
adParamOutput, 100, strRetMes)
.Execute
End With
two output paramenters under debug view, but the values did not get assign
into the variables( intRetCode & strRetMes). What went wrong?
Thanks!
Dim intRetCode As Integer
Dim strRetMes As String
.....
With cmd
Set .ActiveConnection = cn
.CommandType = adCmdStoredProc
.CommandText = "OP_checkValidDiscounts"
.Parameters.Append cmd.CreateParameter("@CO_Number",
adVarChar, adParamInput, 15, rsTmp!head_order_nbr)
.Parameters.Append cmd.CreateParameter("@RetCode",
adInteger, adParamOutput, 15, intRetCode)
.Parameters.Append cmd.CreateParameter("@RetMsg", adVarChar,
adParamOutput, 100, strRetMes)
.Execute
End With