ADODB

F

fi.or.jp.de

Hi All,

I am using reference "Microsoft ActiveX Data Objects 2.x Library" for
connecting access database.

dim DB as adodb.connection
dim RS as adodb.recordset

is there any way without using the above reference and also DAO
objects.
Can I connect with access database ?
 
G

GS

fi.or.jp.de submitted this idea :
Hi All,

I am using reference "Microsoft ActiveX Data Objects 2.x Library" for
connecting access database.

dim DB as adodb.connection
dim RS as adodb.recordset

is there any way without using the above reference and also DAO
objects.
Can I connect with access database ?

No! You have to use a data provider to connect to a data base with ADO.
Also, to connect to an access database (MDB) you need to use different
providers depending on which version of Excel you're using. V11 and
earlier use JET 4.0; v12 and later use ACE 12.0.
 
A

AB

for my 0.02 of worth - as per Harald - you need to google for 'late
binding' - that's the best option there is to avoid pc setup up
differences due to different .dll versions.
Also, the connection provided you use DOES NOT depend on which Excel
version you use but depends on which Access database version you use -
eitehr .mdb or .accdb - then providers are different.
In current environment, I personally, find that using the .mdb still
provides all the features i need from simple databases and i do not
need to migrate to .accdb as yet.
 
G

GS

AB formulated on Friday :
Also, the connection provided you use DOES NOT depend on which Excel
version you use but depends on which Access database version you use -
eitehr .mdb or .accdb - then providers are different.

Thanks for making this correction! My bad for not specifying the db
source...
 

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