Public Sub ap_LinkTables(dbLocal, dynSharedTables, strDataMDB As String)
Dim tdfCurrent As TableDef
Dim flgAddTable As Boolean
Dim intTotalTbls As Integer
Dim intCurrTbl As Integer
On Error GoTo Err_LinkTables
'-- Get the total number of linked tables, then display the progress meter.
dynSharedTables.MoveLast
intTotalTbls = dynSharedTables.RecordCount
dynSharedTables.MoveFirst
tdfCurrent.Connect = ";DATABASE=" & strDataMDB
tdfCurrent.RefreshLink
End If
dynSharedTables.MoveNext
intCurrTbl = intCurrTbl + 1
Loop
Exit_LinkTables:
SysCmd acSysCmdRemoveMeter
Exit Sub
Err_LinkTables:
Resume Exit_LinkTables
End Sub