Report Property

Microsoft Access Visual Basic

expression.Report

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

This property refers to a report object. It is read-only in all views.

You can use this property by using a macro or Visual Basic.

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

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.

Dim curTotalSales As Currency

curTotalSales = Reports!Sales!Employees.Report!TotalSales