Hi All,
I wish to sort by different fields at the user's discretion by using buttons
as headers and clicking the button sorts ascending or desending if it was
ascending previously.
I have the following code
Private Sub Label9_Click()
If Me.OrderBy = "Shipper City" Then
Me.OrderBy = "Shipper City DESC"
Else
Me.OrderBy = "Shipper City"
End If
Me.OrderByOn = True
End Sub
It sorts ascending but does not reverse when clicked again like I believe it
should. Any ideas?
Thanks in advance.
Mike
Klatuu - 18 Oct 2005 21:29 GMT
Try adding this line as the last line in your sub:
Me.Requery
> Hi All,
>
[quoted text clipped - 19 lines]
> Thanks in advance.
> Mike
Mike - 18 Oct 2005 21:41 GMT
I added that without success. Thanks for the idea though.
> Try adding this line as the last line in your sub:
> Me.Requery
[quoted text clipped - 22 lines]
> > Thanks in advance.
> > Mike