Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create an empty MDB ?
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00712425
Message ID:
00712466
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform