Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create an empty MDB ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00712425
Message ID:
00712466
Vues:
12
>Hi all!
>
>I know how to connect a MDB using VFoxPro 7, save data, ..., but how can I create an empty MDB ? I don't have MS Access and I'd like to make all this programming.
>
>
>Thanks!
>
>Vinicius Ribeiro
>
>Vinicius.listas@ig.com.br


Here is some VBA code to create new MDB file. I sure you can apply this to VFP.

Sub ADOCreateDatabase()

Dim cat As New ADOX.Catalog

cat.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=.\New.mdb;"

End Sub

It's taken from article Migrating from DAO to ADO
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndao/html/daotoadoupdate.asp?frame=true

HTH,
Igor Gelin
Database Developer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform