Hi
In function below, pass in the Db (ie Set Db = CurrentDb()and the tabldef of the tabel you want to test ie SET tdf = Db.TAbledefs("YourTable"

.
Function bisTestOneAttachedTable(dbsTmp As Database, tdfTmp As TableDef) As Boolean
'****************************************************************
' Comments : Tests the links of an attached table in the named database
'
'****************************************************************
Dim varTmp As Variant
On Error GoTo err_bisTestOneAttachedTable
varTmp = tdfTmp.Fields(0).NAME
bisTestOneAttachedTable = True
exit_bisTestOneAttachedTable:
Exit Function
err_bisTestOneAttachedTable:
If Err = 3265 Then
bisTestOneAttachedTable = False
End If
Resume exit_bisTestOneAttachedTable
End Function Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use