G
Guest
I am interested in the answer to Jerry's question on November 11, 2004:
"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)?"
Here was RBrandt's reply:
"Me.OrderBy = Screen.PreviousControl.ControlSource
Me.OrderByOn = True "
I attached the code to the on_click event of the control in my form, and it
sorts in ASC. However, what code do I use to toggle the sort order between
ASC/DESC for the column on my form?
Thank you in advance.
"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)?"
Here was RBrandt's reply:
"Me.OrderBy = Screen.PreviousControl.ControlSource
Me.OrderByOn = True "
I attached the code to the on_click event of the control in my form, and it
sorts in ASC. However, what code do I use to toggle the sort order between
ASC/DESC for the column on my form?
Thank you in advance.