Multiple objects![]() ![]() ![]() |
A Report object refers to a particular Microsoft Access report.
A Report object is a member of the Reports collection, which is a collection of all currently open reports. Within the Reports collection, individual reports are indexed beginning with zero. You can 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. If the report name includes a space, the name must be surrounded by brackets ([ ]).
Syntax | Example |
---|---|
Reports!reportname | Reports!OrderReport |
Reports![report name] | Reports![Order Report] |
Reports("reportname") | Reports("OrderReport") |
Reports(index) | Reports(0) |
' Implicit reference.
Reports!OrderReport!NewData
' Explicit reference.
Reports!OrderReport.Controls!NewData