Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert SQL statment to this ?
Message
De
11/08/2000 17:44:15
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00402113
Message ID:
00404183
Vues:
14
Hi Ahmad.

You have two choices: ADO or DAO

For ADO you must use some like this:

'First, open a Reference to Microsoft ActiveX Data Objects Libray
sqlStatment = "SELECT YourField1, YourField2, .., YourFieldN FROM YourTable ..."
YourConnection.Open DSNToYourDataBase
Set YourRs = YourConnection.Execute sqlStatment
.
.
.

For DAO you must use some like this:

'First open a Reference to Microsoft Data Access Objects
sqlStatment = "SELECT YourField1, YourField2, .., YourFieldN FROM YourTable ..."
Set YourDatabase = YourWorkSpace.OpenDatabase("......")
Set YourRs = YourDataBase.OpenRecordset(sqlStatment)
.
.
.

Bye.


German
glurrea
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform