How to Access Report's Data Environment While the Report RunsLast reviewed: February 8, 1996Article ID: Q145816 |
The information in this article applies to:
SUMMARYThis article explains how to access a report's data environment while the report is running.
MORE INFORMATIONWhen you create a report, an associated data environment (DE) is created. The data environment contains information about the tables, views and relations associated with the report. The data environment is an object, and it is a container for a cursor and a relation object. You can gain access to the DE of a report while it is running, so you can manipulate the its properties and methods. To gain access to the data environment, you need to be able to reference it as an object. Use the NAME clause on the REPORT FORM command to specify an object's variable name for the data environment as in this example:
REPORT FORM Samples\Mainsamp\Reports\salessum NAME salessum PREVIEW ; NOWAIT ?salessum.Name && Returns DataEnvironment ?salessum.Cursor1.Alias && Returns sales_summaryFor example, if you want to manually open the tables associated with a report, you can call the OpenTables method of the data environment. The following step-by-step procedure explains how.
Step-by-Step Procedure
|
Additional reference words: 3.00 3.00b DE aselobj
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |