Stored Procedures - First Attempt
Did you declare the command as adodb?
Dim cmd As New ADODB.Command
--
HTH
Bob Phillips
(remove nothere from the email address if mailing direct)
"Jim Heavey" wrote in message
...
These objects are all available in VBA within Excel. Not sure why you are
suggesting that this is not Excel related....it is.
I have figured out that I need to specify ADODB.Parameter and this gets me
by the error that I was experiencing, but then it fails which I attempt to
load the parameters into the Command Object.
I get the error "object required" for the following commands
cmd.Parameters.Append (parm1)
cmd.Parameters.Append (parm2)
The code to create parm1, looks like the following:
Dim parm1 As New ADODB.Parameter
With parm1
.Type = adInteger
.Name = "i_User_ID"
.Value = 1
End With
When I hover over parm1, is see the value of "1" being displayed back to
me.
Why does the cmd.Parameters.Append (parm1) fail?
|