You use the Command Object in ADO.
Parameters are added via use of the Parameters collections.
Code:
set cmInsert = New ADODB.Command
cmInsert.CommandType = adStoredProc
cmInsert.CommandText = "StoredProcName"
cmInsert.Parameters.Append cmInsert.CreateParameter("ParamName", adInteger, adParamInput,,110)
cmInsert.Execute
The above example calls a Stored Procedure that has one parameter of type integer that is an input parameter. The last parameter in CreateParameter method is the value to be passed to the Parameter in the stored procedure.
James James Culshaw
jculshaw@active-data-solutions.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.