Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.93 KB

Access.Reports.md

File metadata and controls

45 lines (28 loc) · 1.93 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Reports object (Access)
vbaac10.chm12478
vbaac10.chm12478
Access.Reports
37c5f55e-3c3a-6140-d305-7e8118d9d2b1
03/21/2019
medium

Reports object (Access)

The Reports collection contains all of the currently open reports in a Microsoft Access database.

Remarks

Use the Reports collection in Visual Basic or in an expression to refer to reports that are currently open. For example, you can enumerate the Reports collection to set or return the values of properties of individual reports in the collection.

Refer to an individual Report object in the Reports collection either by referring to the report by name, or by referring to its index within the collection.

The Reports collection is indexed beginning with zero. If you refer to a report by its index, the first report is Reports(0), the second report is Reports(1), and so on. If you opened Report1 and then opened Report2, Report2 would be referenced in the Reports collection by its index as Reports(1). If you then closed Report1, Report2 would be referenced in the Reports collection by its index as Reports(0).

Note

To list all reports in the database, whether open or closed, enumerate the AllReports collection of the CurrentProject object. You can then use the Name property of each individual AccessObject object to return the name of a report.

You can't add or delete a Report object from the Reports collection.

Properties

See also

[!includeSupport and feedback]