Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing foxpro table
Message
De
17/08/2000 10:17:00
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Accessing foxpro table
Divers
Thread ID:
00406065
Message ID:
00406065
Vues:
60
Can anyone show me how to access a foxpro table using ADO?
I have the following code:

Dim sWorkspace As Workspace
Dim sDatabase As Database
Dim sTable As Recordset

Set sWorkspace = DBEngine.Workspaces(0)
Set sTable = sWorkspace.OpenDatabase("c:\cmts2\cycle14\arpbal2.dbf")
Set sAction = sTable.OpenRecordset("Select * from arpbal2")

But I get an error message at the second Set statement that goes:

Run-time error '3343':

Unrecognized database format 'c:\cmts2\cycle14\arpbal2.dbf'.

Would appreciate any help. Thanks.

Ramon
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform