A
Al Newbie
I have a report that I am trying to sort based on the value of a checkbox.
Here is the code I have (based on Allen Browne's site)
Select Case frm!chkDesc
Case True 'Descending Value
Me.GroupLevel(0).ControlSource = "Sales1"
Me.GroupLevel(0).SortOrder = True
Me.GroupLevel(1).ControlSource = "Customer"
Case False 'Customer
Me.GroupLevel(0).ControlSource = "Customer"
Me.GroupLevel(0).SortOrder = True
Me.GroupLevel(1).ControlSource = "Sales1"
End Select
This seems to work ok except that when the value in "Sales1" is a negative
it always appears at the top of the report what am I doing wrong?
Thanks
Here is the code I have (based on Allen Browne's site)
Select Case frm!chkDesc
Case True 'Descending Value
Me.GroupLevel(0).ControlSource = "Sales1"
Me.GroupLevel(0).SortOrder = True
Me.GroupLevel(1).ControlSource = "Customer"
Case False 'Customer
Me.GroupLevel(0).ControlSource = "Customer"
Me.GroupLevel(0).SortOrder = True
Me.GroupLevel(1).ControlSource = "Sales1"
End Select
This seems to work ok except that when the value in "Sales1" is a negative
it always appears at the top of the report what am I doing wrong?
Thanks