Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB-SQL7...
Message
From
16/06/2000 14:37:18
 
 
To
16/06/2000 14:24:14
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00381552
Message ID:
00381584
Views:
12
No, I do a .Parameters.Refresh -->
With adoCommand
adoCommand.CommandText = "sp_InsertAirMaster"
adoCommand.Parameters.Refresh
adoCommand.Parameters(1) = mskMAWBAir.Text
adoCommand.Parameters(2) = 2
(...)
adoCommand.Parameters(16) = txtComments.Text

Set adoRecord = adoCommand.Execute

MsgBox adoRecord!PK_MasterID --> ERROR
End With

Here is my stored proc-->


CREATE PROCEDURE sp_InsertAirMaster
@Master nvarchar(20),
...
AS
INSERT INTO tblMasterAir
(tblMasterAirwaybill.MAWB
...)
VALUES
(@Master,
...)
SELECT PK_MasterID FROM tblMaster WHERE PK_MasterID = @@Identity

-->
The stored proc work well in query analyser but fail in VB...


Help...
Patrice Merineau
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform