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

Click here to load this message in the networking platform