Private Sub m_crwWindow_DrillOnDetail(ByVal FieldValues As Variant, ByVal SelectedFieldIndex As Long, useDefault As Boolean, ByVal ReportName As Variant)
Dim fldval As CRPEAuto.FieldValue
Select Case SelectedFieldIndex
Case -1
' User clicked on detail, but not on a field
MsgBox "No field selected", , "Drill Down on Detail Event Captured"
Case Else
' User clicked on detail, and on a valid field
Set fldval = FieldValues(SelectedFieldIndex)
MsgBox "Drilled on " & fldval.Name & ", value is: " & fldval.Value, , "Drill Down on Detail Event Captured "