Dim cnn As New ADODB.Connection
Dim cat As New ADOX.Catalog
Dim tbl As Table
cnn.Open "provider=Microsoft.jet.OLEDB.4.0;data source=" & CurrentProject.Path & "\db1.LIB;Jet OLEDBatabase Password=" & mima & ";"
cat.ActiveConnection = cnn
For Each tbl In cat.Tables
GetTblName = tbl.Name
If Left(tbl.Name, 4) <> "msys" Then
IsLink = LinkTbl(CurrentProject.Path & "\db1.LIB", "", GetTblName, GetTblName)
End If
Next
Set tbl = Nothing
Set cat = Nothing
cnn.Close
Set cnn = Nothing