O'Reilly logo

Beginning Access™ 2007 VBA by Denise Gosnell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5.1. Introduction to Data Access

ADO is an acronym for ActiveX Data Objects. DAO stands for Data Access Objects. Both ADO and DAO allow you to manipulate databases from your Access 2007 VBA code.

The prior editions of this book with Access 2002 and earlier covered DAO in detail. DAO has been around since the earliest versions of Access and has always been an excellent data access method for working with native Access data.

ADO is a better choice for building sophisticated, multiuser applications or applications that interact with databases other than Access. It appears that DAO is being phased out, and most books and other resources you find on the topic recommend that ADO be used for all new development. I agree with this recommendation and have, therefore, in both the prior 2003 edition of the book and now with this 2007 edition continued to focus the examples on ADO. If you are dealing with older Access applications that have DAO code, consult the 2002 or prior editions of this book for a comprehensive explanation of DAO, or the online help documentation built into Access and the VBA Editor.

ADO should not be confused with ADO.NET. ADO.NET is a version of ADO that is designed to work with the Microsoft Visual Studio .NET development environment. Although ADO and ADO.NET have a lot of features in common, they are also different in numerous ways. In the future, it is possible that Microsoft will integrate the ADO.NET functionality into Microsoft Access to replace ADO, but such ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required