This is, of course, false on it's face.
1) Create a NEW Access 2003 database (mdb), create a New Module, go to
Tools>References and the "Microsoft DAO 3.6 Object Model" will be
selected -- By Default -- and will, in fact, be above the the ADO object
model reference, which means it has precident.
2) Create a New Access 2007 database (again, mdb), create a New Module, go
to Tools>References and ONLY DAO will be selected -- by default. ADO
doesn't even appear.
3) Create a New Access 2007 database (this time accdb), create a New Module,
go to Tools>References. You will see a reference to "Microsoft Office
Access Database Engine Object Library". Ha, you say. Not DAO. Well, that
would be wrong. If you create a subroutine and type:
dim db as DAO.Database
intellisense will fill in both the "DAO" and "Database", AND it will
compile, proving that DAO is installed. The reference is just the new name
for DAO in the ACCDB format. DAO continues to be extended into future
versions.
BTW, in your new Access 2007 database (either mdb or accdb) if you type:
Dim conn As ADODB.Connection
intellisense WILL NOT fill in "ADODB" or "Connection" and it will throw a
compile error. Proving that ADO is not installed by default in Access 2007.
--
--Roger Carlson
MS Access MVP
www.rogersaccesslibrary.com
Tony-
DAO is obsolete.
DAO is not included - by default - in Access 2000, 2002, 2003 or 2007.
Now _HOW_ is it that you're saying that it 'isnt DAOs fault'?
I don't think that you get the root of the problem
The root of the problem is that DAO is a _CRAP_ library.
Any library-- that makes you explicitly _CLOSE_ and _DEALLOCATE_
variables.. is a waste of time.
Any library-- that IS NOT INSTALLED BY DEFAULT - is a waste of time.
Anything that uses DAO should be moved to ADO. Sorry-- those are the
_FACTS_.
Anything that uses DAO should be moved to ADO. Sorry-- those are the
_FACTS_.
And your little 'oh but I can't loop through the tables in ADO'-- that
kinda bullshit mis-information that you give?
I just won't stand for it any longer.
ADO can do everything that DAO can.. and it's _FASTER_ and its
_STABLE_ and it's omnipresent.
DAO is none of those 3.
It's just not worth it, Tony. I'm right-- DAO is the root of the
problem. If you're tired of dealing with DAO _CRAP_ then move to ADO.
Case Closed!
-Aaron