This code might help you to let the user do the table link via the application:
Dim resval As Integer
Dim strMsg As String
FileDialog.FileName = "*.mdb"
FileDialog.Flags = "&H1000" Or "&H4" 'cdlOFNFileMustExist Or cdlOFNHideReadOnly
resval = FileDialog.ShowOpen()
If Err.Number = 32755 Then
Exit Sub
End If
If FileDialog.FileName = "" Then
MsgBox ("You must select a database to connect to."

End If
strMsg = "Are you sure you want to link the database tables to the tables in the database:" & Chr(10) & Chr(10) & FileDialog.FileName
resval = MsgBox(strMsg, vbYesNo)
If resval = 7 Then
Exit Sub
End If
Dim tbl As dao.TableDef
Dim dbs As dao.Database
Dim X As Integer
X = 1
Set dbs = CurrentDb
Do While X < dbs.TableDefs.Count
Set tbl = dbs.TableDefs(X)
If tbl.Connect > "" Then
tbl.Connect = ";DATABASE=" & FileDialog.FileName
tbl.RefreshLink
End If
X = X + 1
Loop
MsgBox ("Table linking process is complete."
I execute this if I hit an Err.Number = 3024 condition when accessing my first table.
Hope it helps.
Bob