If I create a DB in Access 2007 is it a DAO or ADO database? Not even sure if I am using these terms correctly.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
ADO or DAO? (2007)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ADO or DAO? (2007)
- This topic has 6 replies, 2 voices, and was last updated 16 years, 4 months ago.
AuthorTopicWSDon_Sadler
AskWoody LoungerDecember 15, 2008 at 7:37 am #456037Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerDecember 15, 2008 at 7:45 am #1137799An Access database is neither a “DAO database” nor an “ADO database”. DAO and ADO are both object models that let you work with Access databases (and others) in VBA.
Which one of these two is available to you as programmer is determined by which references have been set in Tools | Databases in the Visual Basic Editor. You can set a reference to DAO (Microsoft DAO 3.6 Object Library) or to ADO (Microsoft ActiveX Data Objects m.n Library), or to both.
In an Access 2000 database, there is a reference to ADO by default, and in an Access 2002/2003 or 2007 database, there is a reference to DAO by default. But you can change that to suit your needs/preferences. -
WSDon_Sadler
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSDon_Sadler
AskWoody LoungerDecember 15, 2008 at 8:30 am #1137813Thanks for information… Somehow I think I did not ask the right question since I have no better understanding now than before except for usage of these terms in a sentence.
As I read various articles and tips about Access, there is frequent reference to ADO or DAO such that it makes me think there must be some importance to this… hence the question. Now, as I understand it, there is nothing to be concerned about.. at least not as a casual and amateur developer.
-
WSHansV
AskWoody LoungerDecember 15, 2008 at 8:39 am #1137816If you don’t write VBA code, you don’t need to concern yourself with ADO or DAO.
If you write VBA code that manipulates recordsets, you will have to use ADO or DAO. Either will work fine, provided that you have set a reference to the relevant object library in Tools | Options in the Visual Basic Editor. And although you can set a reference to both, you should not mix the two object models in the same piece of code – it leads to confusion.
Both object models have objects of type Recordset, for example, and objects of type Field. For this reason, it is a good idea to be explicit when declaring variables, for example:
Dim rst As ADODB.Recordset
Dim fld As ADODB.Fieldwhen you’re using ADO, or
Dim rst As DAO.Recordset
Dim fld As DAO.Fieldwhen you’re using DAO. That way, there can’t be any ambiguity.
-
WSDon_Sadler
AskWoody Lounger
-
-
-
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Asking Again here (New User and Fast change only backups)
by
thymej
29 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
36 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
28 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
6 hours, 21 minutes ago -
Setting up Windows 11
by
Susan Bradley
54 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 hour, 49 minutes ago -
Powershell version?
by
CWBillow
2 hours, 42 minutes ago -
SendTom Toys
by
CWBillow
13 hours, 6 minutes ago -
Add shortcut to taskbar?
by
CWBillow
6 hours, 38 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
23 hours ago -
How can I install Skype on Windows 7?
by
Help
21 hours, 42 minutes ago -
Logitech MK850 Keyboard issues
by
Rush2112
4 hours, 37 minutes ago -
We live in a simulation
by
Alex5723
1 day, 13 hours ago -
Netplwiz not working
by
RetiredGeek
23 hours, 42 minutes ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 1 hour ago -
Microsoft is killing Authenticator
by
Alex5723
13 hours, 11 minutes ago -
Downloads folder location
by
CWBillow
2 days, 8 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 3 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
1 day, 23 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
1 day, 23 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 hour, 16 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
1 day, 22 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
21 hours, 46 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 11 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 12 hours ago -
World Passkey Day 2025
by
Alex5723
8 hours, 48 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
3 days, 21 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
1 day, 22 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 1 hour ago -
Win11 24H2 Slow!
by
Bob Bible
1 hour, 51 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.