Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect to VFP DBC using DAO
Message
From
17/12/2000 13:34:02
Larry Santos
Local Data System
Philippines
 
 
To
16/12/2000 10:38:27
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00454370
Message ID:
00454518
Views:
21
Try to use ADO its a great one.....


>Hi
> How to connect VFP Database using VB? I tried the following code, but it cannot connect to
>
>Private Sub Command1_Click()
>Dim WRK As Workspace
>Dim db As Database
>Dim rs As Recordset
>
>Set WRK = CreateWorkspace("", "admin", "", dbUseJet)
>
>Set db = WRK.OpenDatabase("TAX", dbDriverNoPrompt, False, _
>"ODBC; DRIVER=Microsoft Visual FoxPro Driver;UID=;Deleted=Yes;Null=Yes;Collate=Machine;
>BackgroundFetch=Yes;Exclusive=No;SourceType=DBC;SourceDB=C:\WINDOWS\Desktop\SmallProj\tax.dbc")
>
>End Sub
>
>Any idea?
>
>Thank you
Previous
Reply
Map
View

Click here to load this message in the networking platform