Not sure if this ADO or not<br>
<br>
CreateDatabase, CreateTableDef, Append Methods Example<br>
<br>
This example creates a new database, Nwindex.mdb. The example attaches three dBASE IV tables from the C:\Program Files\Microsoft Office\Office folder to the database.<br>
<br>
Dim nWindEx As Database, customerTable As TableDef<br>
Dim orderTable As TableDef, employeeTable As TableDef<br>
Dim dataSource As String<br>
dataSource = "dBASE IV;" & _<br>
"DATABASE=C:\Program Files\Microsoft Office\Office"<br>
appPath = Application.DefaultFilePath<br>
Set nWindEx = Workspaces(0) _<br>
.CreateDatabase(Application.DefaultFilePath _<br>
& "\NWINDEX.MDB", dbLangGeneral)<br>
' add Customer table<br>
Set customerTable = nWindEx.CreateTableDef("Customer"

<br>
customerTable.Connect = dataSource<br>
customerTable.SourceTableName = "Customer"<br>
nWindEx.TableDefs.Append customerTable<br>
' add Orders table<br>
Set orderTable = nWindEx.CreateTableDef("Orders"

<br>
orderTable.Connect = dataSource<br>
orderTable.SourceTableName = "Orders"<br>
nWindEx.TableDefs.Append orderTable<br>
' add Employee table<br>
Set employeeTable = nWindEx.CreateTableDef("Employee"

<br>
employeeTable.Connect = dataSource<br>
employeeTable.SourceTableName = "Employee"<br>
nWindEx.TableDefs.Append employeeTable<br>
MsgBox "The database " & nWindEx.Name & " has been created."<br>
nWindEx.Close<br>
<br>
<br>