Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning Values when using Store Procedures
Message
From
03/07/2006 04:44:24
 
 
To
30/06/2006 04:03:45
General information
Forum:
Visual Basic
Category:
SQL Server
Miscellaneous
Thread ID:
01132618
Message ID:
01133367
Views:
21
This message has been marked as the solution to the initial question of the thread.
I guess you somehow ignored the second part of my message. If in your VB Code you make use of Command object, this would be much better. Following is the segment that should return the new value to you.
Dim mcmd as ADODB.Command

mcmd.CommandType=adCmdStoredProc
mcmd.CommandText="AddRecord"

dim mParam as ADODB.Parameter

Set mParam = mCmd.CreateParameter("MyNewKey",adinteger,adParamOutput)
mCmd.Parameters.Append mParam

mcmd.Execute

msgbox mcmd(0)
Best Luck..
Nilesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform