'---------------------------------------------------------------------------------------
' Procedure : Multi_MDBs
' Author : user
' Date : 3/30/2008
' Purpose : Used to identify linked tables in a list of databases.
'---------------------------------------------------------------------------------------
'
Sub Multi_MDBs()
Dim ThisDB As DAO.Database
Dim otherDB As DAO.Database
Dim strDbPath As String
Dim rs As Recordset
Dim rz As Recordset
Dim tdf As TableDefs
Dim i As Integer
Dim MyBEPath As String
Dim strMsg As String
Dim sResponse As Variant
10 On Error GoTo Multi_MDBs_Error
20 On Error Resume Next
Dim tbl As TableDef
30 On Error Resume Next
40 Set ThisDB = CurrentDb
50 Set rs = ThisDB.OpenRecordset("Select fullMDBCoord from A2Kmdbs")
60 Open "c:\jack\LinkedTbls.log" For Append As #1
70 Do While Not rs.EOF
80 blnTitlePrinted = False
90 Debug.Print Now & " - Processing " & rs!fullmdbcoord
' If rs!fullmdbcoord <> "D:\A2K\db1_Backup.mdb" Then
' GoTo MoveIt
' End If
100 strDbPath = rs!fullmdbcoord
110 Set otherDB = OpenDatabase(strDbPath)
120 Set tdf = otherDB.TableDefs
130 Debug.Print "Checking tables in "; otherDB.name & vbTab & Now()
140 For i = 0 To tdf.Count - 1
150 MyBEPath = Mid(tdf(i).Connect, 10)
160 Debug.Print tdf(i).name
.....,.