Change Linked Table With Vba

DALIEN51

Registered User.
Local time
Today, 04:13
Joined
Feb 26, 2004
Messages
77
Is it possible to change which table in an external database that my linked table is pointing to using VBA? (Access 2000)

Example code appreciated!

Regards
 
do not think you can change the design of a linked table with VBA or indeed purely by selecting the table in question and putting into design mode

Len
 
Just delete the current linked table
DoCmd.DeleteObject acTable, "c3_ccs_wtwproductprice"
Then link a new one
DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=C3AMP;UID=C3read;PWD=connect3;LANGUAGE=us_english;" & "DATABASE=connect3", acTable, "ccs_wtwproductprice", "c3_ccs_wtwproductprice"
 

Users who are viewing this thread

Back
Top Bottom