Function CreateDatabaseAdox()
'Purpose: Create a database using ADOX.
Dim cat As New ADOX.Catalog
Dim strFile As String
strFile = "C:\SampleADOX.mdb"
cat.Create "Provider='Microsoft.Jet.OLEDB.4.0';" & _
"Data Source='" & strFile & "'"
Set cat = Nothing
Debug.Print strFile & " created."
End Function
No comments:
Post a Comment