Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a stored procedure like this:
Create Procedure [sp_checkitem] (@Cname [varchar](50), @Dname [varchar](50), @CID [int] ) AS Set @CID = (Select CatID from [sdb].[dbo].[vw_Categories] WHERE Category=@Cname AND Domain = @Dname) GO AND have this in my excel VB ..... dim comm as ADODB.Command dim CaID as Integer comm.ActiveConnection = con with comm .Parameters.Refresh .Parameters.Append .Parameters.CreateParameter("@Cname", adVarChar, adParamInputOutput, 50, "History") .Parameters.Append .Parameters.CreateParameter("@Dname", adVarChar, adParamInputOutput, 50, "bicycle") .Parameters.Append .Parameters.CreateParameter("@CID", adInteger, adParamInputOutput, , CaID) end with comm.Execute .... Where did I go wrong? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Error Help - Method "Range" of object "_Worksheet" failed. | Excel Programming | |||
When Using Format(Now(), "yyyymmmddhhmm") get wrong number of arguments or invalid property assignment Error | Excel Programming | |||
What is Error "Method "Paste" of object "_Worksheet" failed? | Excel Programming | |||
Getting "compile error" "method or data member not found" on reinstall | Excel Programming |