Access 2007 Connection String

M

mwulfe

I want to use ADO with VB6 to connect to an Access 2007 database. Can
anyone tell me the provider text and the rest of the connection string
to use?

TIA,
Martin
 
B

boblarson

Just remember though, that if you are using ADO to connect to the CURRENT
database (not an external db) then you should be using
CurrentProject.Connection as the connection and not a normal ADO connection
string.

So, in other words you just use:

rst.Open "YourTableOrQuery", CurrentProject.Connection ...etc.


--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com

__________________________________
 

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