Module: modManagingObjects
Delete, duplicate, rename, and export Access objects in Jet and ADP databases
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modManagingObjects module
|
|
DeleteObject
|
Procedure
|
Deletes an object (table, query etc.) using the DeleteObject action.
If the object cannot be deleted, the function returns a value of False. If it returns True, the object no longer exists.
|
|
DuplicateObject
|
Procedure
|
Duplicate (copy) an object (table, query, form, report, macro, module, diagram, view, stored procedure, etc.) in its own database
If an object with the new name already exists, it is overwritten. This function can fail if the target object exists and is being used.
|
|
DuplicateTableStructure
|
Procedure
|
Duplicate (copy) a table's structure (no data) into a new table in the current database
|
|
ExportObject
|
Procedure
|
Export (copy) an object (table, query, form, report, macro, module, diagram, view, stored procedure, etc.) in its own database.
The other database needs to support the exported object type (e.g. ADP objects go to ADPs)
|
|
IsValidAccessName
|
Procedure
|
Determines if the supplied name is a valid name for an Access object. The following rules are used:
1. Has to be at least one character in length
2. Has to be fewer than 64 characters in length
3. Cannot start with a space or equals sign
4. Cannot contain any of the following characters: ! . [ ] `
|
|
RenameObject
|
Procedure
|
Renames an object (table, query etc.).
If an object with the new name already exists, it is overwritten. This function can fail if the target object exists and is being used.
|
Overview of 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.
Additional Resources
|