I have the following function for tableDef that is working, but I don't want to have to repeat the code for each table. Can you tell me know to do this to include all the tables without repeating code?
Code:
Function ShowConnectInfo(strConnect_ss)
Dim dbs As DAO.Database
Dim tdf As DAO.TableDef
Set dbs = CurrentDb()
[COLOR=darkred] Set tdf = dbs.TableDefs("ss_person")[/COLOR]
[COLOR=darkred] tdf.Connect = strConnect_ss[/COLOR]
[COLOR=darkred] tdf.RefreshLink[/COLOR]
[COLOR=darkred] Set tdf = dbs.TableDefs("ss_place")[/COLOR]
[COLOR=darkred] tdf.Connect = strConnect_ss[/COLOR]
[COLOR=darkred] tdf.RefreshLink[/COLOR]
Set tdf = Nothing
Set dbs = Nothing
End Function