Open ODBC connection

G

Guest

Hello,

My access db has linked tables to another db (not access). I get information
from these tables using ODBC. Every time I get information I'm prompted with
the ODBC login form.
How do I open de ODBC connection using VBA?

Thanks
René
 
A

Alex Dybenko

Hi,
you can try to save login info together with connection string when you
create linked table, for example for SQL server this works fine
 
G

Guest

Yes, I know, but that would mean I have to create a DSN on every computer
that uses the database. That's not what I want, so I'm looking for the VBA
solution.

René
 
G

Guest

Thanks,

I found code that creates a new DSN. Also a solution that works for me.

greetings
René
 

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