Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert SQL statment to this ?
Message
 
To
11/08/2000 17:44:15
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00402113
Message ID:
00405180
Views:
13
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 <><>
<><><><><><><><><><><><><><><><><><><><>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform