Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert SQL statment to this ?
Message
 
À
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:
00405180
Vues:
14
German,
thank you for your help.
I tried what you told me but i don't know where to but the ",adCmdTableDirect" because I need it for the .Seek useing ADO.



>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
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform