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.
|(Declarations)||Declarations||Declarations and private variables for the modSnippetDAOParity_Security module.|
|ShowAddUserToGroup_ADO||Procedure||Show how to add a user to an existing group using ADO.|
|ShowAddUserToGroup_DAO||Procedure||Show how to add a user to an existing group using DAO.|
|ShowChangePassword_ADO||Procedure||Show how to change a user's password using ADO.|
|ShowChangePassword_DAO||Procedure||Show how to change a user's password using DAO.|
|ShowCreateNewGroup_ADO||Procedure||Show how to create a new group using ADO.|
|ShowCreateNewGroup_DAO||Procedure||Show how to create a new group using DAO.|
|ShowCreateUser_ADO||Procedure||Show how to create a new user with ADO.|
|ShowCreateUser_DAO||Procedure||Show how to create a new user with DAO.|
|ShowOpenDatabaseWithPassword_ADO||Procedure||Show how to open a database that is protected with a Database Password using ADO.|
|ShowOpenDatabaseWithPassword_DAO||Procedure||Show how to open a database that is protected with a Database Password using DAO.|
|ShowOpenSecuredDatabase_ADO||Procedure||Show how to open a database that is protected with user-level security using ADO.|
|ShowOpenSecuredDatabase_DAO||Procedure||Show how to open a database that is protected with user-level security using DAO.|
|ShowSetPermissions_ADO||Procedure||Show how to set permissions for a user/object pair using ADO.|
|ShowSetPermissions_DAO||Procedure||Show how to set permissions for a user/object pair using 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.
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!
Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!
"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