I am having trouble getting some code to run
working with SL Server 2000 and Vb 6.0
trying to make the following work... but it doesn't...
why not??
'A sample procedure call from my database
SELECT SiteIdass
From tblTempTrans
return 0
' end sample
'note that if I do a similar call passing no parameters
it works
Public Function runCMDbySiteIDAS(ByRef objConn As
ADODB.Connection, _
ByVal strCommand As String, _
ByVal iIn) As Long
Dim objCMD As New ADODB.Command
Set objCMD.ActiveConnection = objConn
objCMD.CommandText = strCommand
With objCMD.Parameters
.Append objCMD.CreateParameter("RC",
adInteger, adParamReturnValue)
.Append objCMD.CreateParameter("ProdNo",
adInteger, adParamInput, , iIn)
End With
objCMD.Execute
set objcmd=nothing
end function
but clearly I am ( or so I think!)
help please