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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top