ACC2000: How to Set the Focus and Close Instances of Report Objects (209938)
The information in this article applies to:
This article was previously published under Q209938 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SUMMARY
Microsoft Access allows you to create temporary instances of reports and
forms in Visual Basic code by using the "New" keyword. This functionality allows 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.
REFERENCESFor more information about declaring API procedures, click Microsoft Visual Basic Help on the
Help menu, type declare statement example in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto kbinfo kbusage KB209938 |
---|
|