ACC: How to Set Focus and Close Instances of Report ObjectsLast reviewed: August 29, 1997Article ID: Q161878 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. Microsoft Access enables you to create temporary instances of reports and forms in Visual Basic code using the New keyword. This functionality enables you to create an instance of an object on demand. A new instance of a form or report keeps the original object's Name property, which can make it difficult to refer to a particular instance of the object in code. This article demonstrates how to set the focus on an instance of a report and then to close it using Windows application programming interface (API) procedures and Visual Basic for Applications code. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual.
MORE INFORMATION
REFERENCESFor more information about declaring API procedures, search the Help Index for "Declare statement."
|
Additional query words: New Objects Reports
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |