The following Start event procedure returns the value of the Customer Class legend field using the field’s index:
Private Sub Report_Start() If RMCustomerReport.Legend(5) = "AARONFIT0001 - AARONFIT0001" Then RMCustomerReport.Cancel End If