OrderListBox.mdb (intermediate)

Please consider donating $1 per sample downloaded, find out why here
Access 97 (21 KB)

This sample shows how to make a listbox reorder by clicking on the column header. It also shows how to use the same button to sort ASC or DESC

The column headers are acutally buttons placed above the columns in the listbox, and code recreates the rowsource for the listbox based on which button you click. The caption is changed depending on which button is clicked, thus showing which column is being sorted and in which order.

To use, chose a client in the Client combo, then click the two headers to re-order the list.




Need Winzip?

Return to Main Page