Friday, September 22, 2017

Report Property

Report Property

Applies to

Control Object

Report Object

SubForm Object

SubReport Object

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

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

No comments:

Post a Comment