>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=trueHTH,
Igor Gelin
Database Developer