ACC: How to Set Focus and Close Instances of Report Objects (161878)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q161878 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
Microsoft Access enables you to create temporary instances of reports and
forms in Visual Basic code by 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.
REFERENCES
For more information about declaring API procedures, search the Help Index
for Declare statement.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming kbusage KB161878 |
---|
|