我的方法比较笨:(,要引用ADOX
Function LinkPath(tabName As String) As String
Dim catDB As ADOX.Catalog
Dim tblLink As ADOX.Table
Dim i As Integer
Set catDB = New ADOX.Catalog
catDB.ActiveConnection = CurrentProject.Connection
Set tblLink = catDB.Tables(tabName)
LinkPath = tblLink.Properties("Jet OLEDBink Datasource")
Set tblLink = Nothing
Set catDB = Nothing
End Function