Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB-SQL7...
Message
De
16/06/2000 14:37:18
 
 
À
16/06/2000 14:24:14
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00381552
Message ID:
00381584
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform