code to dynamically change the Database Name of Linked tables

B

Brent_Fangy

I need to know if any code exist that will allow me to
change the Database name used in the Connect string of a
linked table.

We have 10 companies, all using the same ERP software
package all with their data housed in Oracle (all with the
exact same tables).

I want to be able to switch from database to database for
a user who is logged on in Access, without having to
manually go to the linked table manager.

Any help is greatly appreciated.

Brent Fanguy
IT-Project Manager
(e-mail address removed)
 
T

Tim Ferguson

I want to be able to switch from database to database for
a user who is logged on in Access, without having to
manually go to the linked table manager.
[snip...]

I need to know if any code exist that will allow me to
change the Database name used in the Connect string of a
linked table.

Have you looked up help for the Connect property: that gives you all you
need to know? You can use it for Provider (eg. oracle, sql server, etc) and
security (password, userid) and so on. Don't forget the RefreshLink method
too.

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top