D
David
I Know how to Link a Table from One Access database to
another using ADO and ADOX. Here is my ADO, ADOX vb6
source code:
-----------------------------------------------------
Set catLocal = New ADOX.Catalog
catLocal.ActiveConnection = cnnToLocalAccessMDB
Set tblRemote = New ADOX.Table
With tblRemote
Set .ParentCatalog = catLocal
.Name = strLocalTableName
.Properties.Item("Jet OLEDB:Create Link").Value = True
.Properties.Item("Jet OLEDB:Link Datasource").Value =
strRemotePathFileMDB
.Properties.Item("Jet OLEDB:Remote Table Name").Value =
strRemoteTableName
end With
catLocal.Tables.Append tblRemote
another using ADO and ADOX. Here is my ADO, ADOX vb6
source code:
-----------------------------------------------------
Set catLocal = New ADOX.Catalog
catLocal.ActiveConnection = cnnToLocalAccessMDB
Set tblRemote = New ADOX.Table
With tblRemote
Set .ParentCatalog = catLocal
.Name = strLocalTableName
.Properties.Item("Jet OLEDB:Create Link").Value = True
.Properties.Item("Jet OLEDB:Link Datasource").Value =
strRemotePathFileMDB
.Properties.Item("Jet OLEDB:Remote Table Name").Value =
strRemoteTableName
end With
catLocal.Tables.Append tblRemote