relinking oracle tables through code

R

raj

Hi,

I am using the following code to relink the oracle tables during my
application startup

With CurrentDb
TableDefs.Append _
.CreateTableDef(ADestinationName, 0, _
ASourceName, CONNECTION_ODBC)
End With

Where

- ADestinationName is the name of the linked table in Acces
- ASourceName is the qualified (schema.name) of the table or view in Oracle.
- CONNECTION_ODBC is the connection string (see connectionstrings.com)

But when I quit and restart the application, the application by default
connects to the previous dbq/dns.

I every time need to click Tools > Database Utilities > Compact and Repair
Database to take the news DBQ or connection string.

Is there any way i could clear the cache or close the connection properly?
 
R

raj

Hi Alex,

Thanks for you link.

I have tried this first. But i am getting the message

"The User DSN for Oracle Tables were not found. Please check ODBC32 under
Control Panel."

I have Oracle user DSN, but still not sure why this message is getting
prompted.

Pls help.
 

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