ACC1x: Programming w/ the Object Analyzer Engine and UtilitiesLast reviewed: August 6, 1997Article ID: Q88620 |
The information in this article applies to:
SUMMARYWhen the Database Analyzer library is loaded into memory, you not only have access to the Database Analyzer tool, but also to all the core commands that do the actual analysis. This article discusses these core commands, and describes how you can use them to include data analysis in your custom application or to create your own database-object analysis tool. This article assumes that you are familiar with Access Basic and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Access Basic, please refer to the "Introduction to Programming" manual.
MORE INFORMATIONThe Database Analyzer tool is included with Microsoft Access. You can use this tool to retrieve information about the design of objects (such as tables, queries, and forms) in your database. For more information about the Database Analyzer tool, including instructions about how to install the Database Analyzer, see the following file that is shipped with Microsoft Access and is located in your ACCESS directory:
Microsoft Access version 1.0: PSSKB.TXT (Question 23) Microsoft Access version 1.1: ANALYZER.TXTAfter you have loaded the Database Analyzer library into memory (by following the instructions in the file named above), you not only have access to the Database Analyzer tool, but also to all the core commands that do the actual analysis. The Database Analyzer consists of three pieces:
DumpTableInfo DumpQueryInfo DumpFormOrReport DumpMacroInfo DumpModuleInfoAssuming you have loaded the Database Analyzer library into memory, these commands are available to you in the Immediate window. To try one of these commands, do the following:
The following lists the syntax for the Database Analyzer commands:
DumpTableInfo <TargetDB>, <DetailsTable>, <ObjectName>, <IsAttached> -------------------------------------------------------------------- Formal Parameter Definition ----------------------------- TargetDB$ The name of the database that will receive the table. DetailsTable$ The name of the table that will receive the information. ObjectName$ The name of the table to report on. IsAttached% True if the table being reported is an Attached Table; otherwise False. DumpQueryInfo <TargetDB>, <SQLTable>, <DetailsTable>, <ObjectName> ------------------------------------------------------------------ Formal Parameter Definition ----------------------------- TargetDB$ The name of the database that will receive the table. SQLTable is the name of the table that will receive the SQL representation of the query. DetailsTable$ The name of the table that will receive the detailed information of the query. ObjectName$ The name of the query to report on. DumpFormOrReport <TargetDB>, <PropsTable>, <DetailsTable>, <ObjectName>, <IsForm> ---------------------------------------------------------- Formal Parameter Definition ----------------------------- TargetDB$ The name of the database that will receive the table. PropsTable$ The name of the table that will receive the information on the form's or report's properties. DetailsTable$ The name of the table that will receive the detail information about the form or report. ObjectName$ The name of the form or report. IsForm% True if reporting on a form, False if on a report. DumpMacroInfo <TargetDB>, <DetailsTable>, <ObjectName> ------------------------------------------------------ Formal Parameter Definition ----------------------------- TargetDB$ The name of the database that will receive the table. DetailsTable$ The name of the table that will receive the information. ObjectName$ The name of the macro to report on. DumpModuleInfo <TargetDB>, <ProcsTable>, <VarsTable>, <ObjectName> ------------------------------------------------------------------ Formal Parameter Definition ----------------------------- TargetDB$ The name of the database that will receive the table. ProcsTable$ The name of the table that will receive the listing of procedures. VarsTable$ The name of the table that will receive the listing of variables. ObjectName$ The name of the module to report on. NOTE: DumpModuleInfo will not work if it is run from an Immediate window. Keywords : kbprg PgmOthr Version : 1.0 1.1 Platform : WINDOWS Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |