graham-n
asked on
vba to relink oracle tables in msaccess 2007
I want to use msaccess 2007 linked ODBC Oracle tables with different oracle DBs e.g. dev, uat.
e.g. original msaccess link is to Oracle table schema1.tablex in SIDA. Access would call this schema1_tablex.
I want a script to relink schema1_tablex to e.g. schema2.tablex in SIDB. Need msaccess to still use the name schema1_tablex. As you can see, the Oracle table name stays the same, but schema and SID need to be able to be respecified when required.
I need a script, not the linked table manager in the menu.
e.g. original msaccess link is to Oracle table schema1.tablex in SIDA. Access would call this schema1_tablex.
I want a script to relink schema1_tablex to e.g. schema2.tablex in SIDB. Need msaccess to still use the name schema1_tablex. As you can see, the Oracle table name stays the same, but schema and SID need to be able to be respecified when required.
I need a script, not the linked table manager in the menu.
ASKER
the link above looks like it is for msaccess tables. Oracle tables are linked by ODBC, the do not have a path.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will attempt to work out a solution using parts of the replies.
http://www.fabalou.com/Access/Modules/refreshtables.asp