Module: SnippetDAOParity_Data in Category Access/Jet Databases : Snippets from Total Visual SourceBook

Comparison of common data access activities against Jet table data using the DAO and ADO methods in VBA and VB6.

While most Access and VB6 projects that use Jet use the DAO object model, ADO is also possible. This module shows common DAO tasks and then shows the equivalent ADO code.

Procedure Name Type Description
(Declarations) Declarations Declarations and private variables for the modSnippetDAOParity_Data module.
ShowExecuteBulkOpQuery_ADO Procedure Show how to execute a bulk-operation (action) query using ADO.
ShowExecuteBulkOpQuery_DAO Procedure Show how to execute a bulk-operation (action) query using DAO.
ShowExecuteParamQuery_ADO Procedure Show how to run a saved query that uses parameters with ADO.
ShowExecuteParamQuery_DAO Procedure Show how to run a saved query that uses parameters with DAO.
ShowFilterRecordset_ADO Procedure Show how to use ADO to apply a filter to a recordset.
ShowFilterRecordset_DAO Procedure Show how to use DAO to apply a filter to a recordset.
ShowFindRecord_ADO Procedure Show how to use the Find method to locate a record using ADO in an ADO recordset.
ShowFindRecord_DAO Procedure Show how to use the Find method to locate a record using DAO in a DAO recordset.
ShowOpenDatabase_ADO Procedure Show how to open a Jet database using ADO.
ShowOpenDatabase_DAO Procedure Show how to open a Jet database using DAO.
ShowOpenDatabaseReadOnly_ADO Procedure Show how to open a Jet database object as Read-Only using ADO.
ShowOpenDatabaseReadOnly_DAO Procedure Show how to open a Jet database object as Read-Only using DAO.
ShowOpenExcelISAM_DAO Procedure Show how to open an Excel spreadsheet as a Jet object using Jet's Excel ISAM driver with DAO.
ShowOpenISAMDatabase_ADO Procedure Show how to open an Excel spreadsheet as a Jet object using Jet's Excel ISAM driver with ADO.
ShowOpenRecordsetFORO_ADO Procedure Show how to open a forward-only, read-only recordset using ADO.
ShowOpenRecordsetFORO_DAO Procedure Show how to open a forward-only, read-only recordset using DAO.
ShowOpenUpdateableRecordset_DAO Procedure Show how to open an updateable recordset on a SQL string using DAO.
ShowRunSavedQuery_ADO Procedure Show how to run a row-returning saved query using ADO.
ShowRunSavedQuery_DAO Procedure Show how to run a row-returning saved query using DAO.
ShowSeekRecord_ADO Procedure Show how to find a record in an ADO recordset using the Seek method. Seeks are generally faster than Finds because Seek uses the Index object directly.
ShowSeekRecord_DAO Procedure Show how to find a record in a DAO recordset using the Seek method. Seeks are generally faster than Finds because Seek uses the Index object directly.
ShowSortRecordset_ADO Procedure Show how to use ADO to sort a recordset.
ShowSortRecordset_DAO Procedure Show how to use DAO to sort a recordset.
ShowUpdateRecordset_ADO Procedure Show how to open an updateable recordset on a SQL string using ADO.
ShowUseTransactions_ADO Procedure Show how to use Jet transactions in ADO.
ShowUseTransactions_DAO Procedure Show how to use Jet transactions in DAO.
' Snippet code is partial code that demonstrates a particular feature, and does include separate Example code.
' Please see the Snippet notes for information about customizing and implementing Snippet code.

Total Visual SourceBook The source code in Total Visual Sourcebook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Total Visual SourceBook is written for the needs of a developer using a source code library covering the many challenges you face. Countless developers over the years have told us they learned some or much of their development skills and tricks from our code. You can too!

Additional Resources

Total Visual SourceBook CD and Printed Manual

Microsoft Access/ Office 2016, 2013, 2010, and 2007 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office and VB6

Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!


View all FMS products for Microsoft Access All Our Microsoft Access Products

Reviews

Reader Choice Award for MS Access Source Code Library
Reader Choice

"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP

SourceBook Info

Additional Info

Question

 

 

Free Product Catalog from FMS