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

Comparison of common data access activities against Jet object structures 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_DDLEngine module.
ShowChangeSavedQuery_ADO Procedure Show how to modify an existing saved query using ADO.
ShowChangeSavedQuery_DAO Procedure Show how to modify an existing saved query using DAO.
ShowCreateDatabase_ADO Procedure Show how to use ADO to create a new Jet database.
ShowCreateDatabase_DAO Procedure Show how to use DAO to create a new Jet database.
ShowCreateIndex_ADO Procedure Show how to use ADO to create an index on a table.
ShowCreateIndex_DAO Procedure Show how to use DAO to create an index on a table.
ShowCreateLinkedJetTable_ADO Procedure Show how to use ADO to create a linked (attached) table.
ShowCreateLinkedJetTable_DAO Procedure Show how to use DAO to create a linked (attached) table.
ShowCreateLinkedODBCTable_ADO Procedure Show how to use ADO to create a Jet linked table to an ODBC datasource.
ShowCreateLinkedODBCTable_DAO Procedure Show how to use DAO to create a Jet linked table to an ODBC datasource.
ShowCreatePassThroughQuery_ADO Procedure Show how to create a Jet pass-through query using ADO.
ShowCreatePassThroughQuery_DAO Procedure Show how to create a Jet pass-through query using DAO.
ShowCreateQuery_ADO Procedure Show how to create a saved query using ADO.
ShowCreateQuery_DAO Procedure Show how to create a saved query using DAO.
ShowCreateRelationship_ADO Procedure Show how to create a Jet relation object using ADO.
ShowCreateRelationship_DAO Procedure Show how to create a Jet relation object using DAO.
ShowCreateTable_ADO Procedure Show how to create a new table using ADO.
ShowCreateTable_DAO Procedure Show how to create a new table using DAO.
ShowListQueries_ADO Procedure Show how to generate a list of all queries in a database using ADO.
ShowListQueries_DAO Procedure Show how to generate a list of all queries in a database using DAO.
ShowListTables_ADO Procedure Show how to generate a list of all tables in a database using ADO.
ShowListTables_DAO Procedure Show how to generate a list of all tables in a database using DAO.
ShowRefreshLinks_ADO Procedure Show how to update all the linked tables in a database to point to a new location using ADO.
ShowRefreshLinks_DAO Procedure Show how to update all the linked tables in a database to point to a new location using DAO.
ShowSetJetDBOption_ADO Procedure Show how to override Jet Engine defaults for a database using ADO. In this example, we'll use ADO to set the PageTimeout value to 4 seconds.
ShowSetJetDBOption_DAO Procedure Show how to override Jet Engine defaults for a database using DAO. In this example, we'll use DAO to set the PageTimeout value to 4 seconds.
' 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