Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameter in the ADO activeX properties
Message
 
À
03/08/2001 22:29:20
Information générale
Forum:
Visual Basic
Catégorie:
SQL Server
Divers
Thread ID:
00539728
Message ID:
00540123
Vues:
19
Hi!
Adodc1.RecordSource = "GET_LNAME;1('" & SomeVariable & "')"
Using Dataenvironment you can add Parameter to Parameters collection of Command object and set its value in code.

>Using the ADO component (i.e. ADODC1), I have the activeX properties page set up to SQL server, that has a stored procedure "GET_LNAME".
>This stored procedure requires a parameter. I can enter a "hard coded" parameter on the RECORD SOURCE tab of the properties page (i.e. GET_LNAME;1('Cruz') when the command type is "4", (adCmdStoredProc). Is there a way to put a variable on this property page (in place of 'Cruz'), and have it passed from VB?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform