Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - OrderListBox.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please consider donating $1 per sample downloaded, (find out why here)

OrderListBox.mdb (intermediate)

 Post Reply Post Reply
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP

Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: OrderListBox.mdb (intermediate)
    Posted: 29 Jul 2008 at 11:06pm

Please consider donating $1 per sample downloaded, find out why here.


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.
Access 97 (21 KB):
Access 2000 (24 KB): uploads/5/

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.