Hi All
I am having a little CreateParameter problem...
What I am trying to do is create a parameter for a stored procedure using ADODB.Command's CreateParameter object (as detailed within ASP 3 book). The format I am using is:
Code:
Set objParam = objComm.CreateParameter("@paramName", adChar, adParamInput, 30)
objComm.Parameters.Append objParam1
Dim intValue
intValue = 1 or 2 or 3 or 4 or 5
objComm.Parameters("@paramName") = intValue
As you can see from the above, I am trying to add within this 1 parameter, a value that includes a series of numbers using an OR operator.
I have tried various ways and the closest I get is receiving the following error:
Application uses a value of the wrong type for the current operation.
Does anyone have any wisdom they are willing to share with me?
Warm Regards
Rit