I have a report being run by a form which offers different sort options. There is one group in the report - call it "Status". I need the users to be able to sort within the status by "client name" or "days past due". I'm having no luck. The sort order is being offered by a combo box. Currently I have this on the On Format of the detail section in the report:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Forms!frmPastDueLoans!cboSort = "Days Past Due" Then
Me.OrderBy = [days]
Me.OrderByOn = True
Else
If Forms!frmPastDueLoans!cboSort = "Client Name" Then
Me.OrderBy = [Name]
Me.OrderByOn = True
End If
End If
End Sub
Any insight would be greatly appreciated. Thank you.
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Forms!frmPastDueLoans!cboSort = "Days Past Due" Then
Me.OrderBy = [days]
Me.OrderByOn = True
Else
If Forms!frmPastDueLoans!cboSort = "Client Name" Then
Me.OrderBy = [Name]
Me.OrderByOn = True
End If
End If
End Sub
Any insight would be greatly appreciated. Thank you.