Tintin,
Public Sub ChangeRemoteTableName( _
strOldTableName As String, _
strNewTableName As String, _
strFilespec As String)
Dim db As Database
Dim tdf As DAO.TableDef
'Open the remote database
Set db = OpenDatabase(strFilespec)
'Get a reference to the existing remote table
Set tdf = db.TableDefs(strOldTableName)
'Rename the table
tdf.Name = strNewTableName
'Clean up
Set tdf = Nothing
Set db = Nothing
End Sub
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia