标题: Access链接SQL SERVER数据库表的求助 [打印本页] 作者: wdelin 时间: 2008-3-15 19:39 标题: Access链接SQL SERVER数据库表的求助 ACCESS希望通过代码实现创建链接SQL SERVER数据库SYNTHSIS中的表dbo.r1员工登记表(mysql是ODBC数据源):
Dim adoConnection As New ADODB.Connection
Dim adoCatalog As New ADOX.Catalog
Set adoCatalog = New ADOX.Catalog
Set adoCatalog.ActiveConnection = CurrentProject.Connection
Dim adoTable As New ADOX.Table
Set adoTable.ParentCatalog = adoCatalog