#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default ADODB

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 ?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default ADODB

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.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default ADODB

You can reference at runtime, it's called Late binding. Example
http://www.yhbnews.com/technology/ad...bility-issues/
and others at
http://www.google.com/search?hl=en&s...=g-v1&aql=&oq=

HTH. Best wishes Harald


"fi.or.jp.de" wrote in message
...
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 ?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default ADODB

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.



On Feb 3, 8:30*pm, "Harald Staff" wrote:
You can reference at runtime, it's called Late binding. Examplehttp://www..yhbnews.com/technology/ado-late-binding-note-avoid-missing...
and others athttp://www.google.com/search?hl=en&source=hp&biw=1213&bih=561&q=ado+l...

HTH. Best wishes Harald

"fi.or.jp.de" wrote in message

...



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 ?- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default ADODB

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...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.RecordSet Dan Thorman Excel Programming 6 January 30th 07 05:11 PM
ADODB Mr Struggler Excel Programming 1 October 20th 06 08:46 AM
ADODB.Connection Jez[_7_] Excel Programming 0 October 13th 06 12:02 PM
ADODB SQL help Eric Excel Programming 1 August 4th 05 04:48 PM
ADODB Richard Mogy Excel Programming 3 May 6th 04 09:14 PM


All times are GMT +1. The time now is 05:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"