Form, Report Properties Example

The following example uses the Form and Report properties to refer to a control on a subform and a subreport.

Dim curTotalAmount As Currency
Dim curTotalSales As Currency
curTotalAmount = Forms!Orders!OrderDetails.Form!TotalAmount
curTotalSales = Reports!Sales!Employees.Report!TotalSales