Share via


SubForm.Report Property

Access Developer Reference

You can use the Report property to refer to a report or to refer to the report associated with a subreport control. Read-only Report.

Syntax

expression.Report

expression   A variable that represents a SubForm object.

Remarks

This property is typically used to refer to the report contained in a subreport control.

Bb242117.vs_note(en-us,office.12).gif  Note
When you use the Reports collection, you must specify the name of the report.

Example

The following example uses the Report property to refer to a control on a subreport.

Visual Basic for Applications
  Dim curTotalSales As Currency

curTotalSales = Reports!Sales!Employees.Report!TotalSales