'*************** Code Start ************** ' This code was originally written by Dev Ashish. ' It is not to be altered or distributed, ' except as part of an application. ' You are free to use it in any application, ' provided the copyright notice is left unchanged. ' ' Code Courtesy of ' Dev Ashish ' ' Function fGetLinkPath(strTable As String) As String Dim dbs As Database, stPath As String Set dbs = CurrentDb() On Error Resume Next stPath = dbs.TableDefs(strTable).Connect If stPath = "" Then fGetLinkPath = vbNullString 'can change this to currentdb.name Else fGetLinkPath = right(stPath, Len(stPath) _ - (InStr(1, stPath, "DATABASE=") + 8)) End If Set dbs = Nothing End Function Sub sListPath() Dim loTd As TableDef CurrentDb.TableDefs.Refresh For Each loTd In CurrentDb.TableDefs Debug.Print fGetLinkPath(loTd.Name) Next loTd Set loTd = Nothing End Sub '*************** Code End **************