Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect to VFP DBC using DAO
Message
From
16/12/2000 10:38:27
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Connect to VFP DBC using DAO
Miscellaneous
Thread ID:
00454370
Message ID:
00454370
Views:
61
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
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform