Access 2007 link table login

W

wesbird

Hi
I am migrating my Access 2003 to 2007. There a lot of link tables from
Oracle in my mdb file. when my applicaiton running, I have to code to login
Oracle:

Dim wsp As Workspace
Set wsp = DBEngine.CreateWorkspace("xxx", "xxx", "xxx", dbUseODBC)
Set dbs = OpenDatabase("", False, True, strConnect) ' connect via
regular ODBC
'Close the database. The login is still cached so that it is available
for any
'Access object that needs it during the same session.
dbs.Close

This code works great in 2003 but not in 2007. How I can do it in 2007?


Thank you a lot
Wes
 

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