Command Button for Sorting?

  • Thread starter Thread starter Jerry Crosby
  • Start date Start date
J

Jerry Crosby

Is it possible to code a command button (on click event) such that it will
replicate what happens when you click the sort icon in the toolbar (that
A-->Z icon)?

Of course, if it is possible, I'd like to know the code, too!

Thanks in advance.

Jerry
 
Jerry Crosby said:
Is it possible to code a command button (on click event) such that it will
replicate what happens when you click the sort icon in the toolbar (that
A-->Z icon)?

Of course, if it is possible, I'd like to know the code, too!

Me.OrderBy = Screen.PreviousControl.ControlSource
Me.OrderByOn = True
 
Back
Top