Print Page | Close Window

OrderListBox.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=306
Printed Date: 28 Mar 2024 at 8:46am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: OrderListBox.mdb (intermediate)
Posted By: Roger Carlson
Subject: OrderListBox.mdb (intermediate)
Date Posted: 29 Jul 2008 at 11:06pm

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 

OrderListBox.mdb

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.
 
Download
Access 97 (21 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/OrderListBox97.zip - uploads/5/OrderListBox97.zip
Access 2000 (24 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/OrderListBox2k.zip - uploads/5/OrderListBox2k.zip



-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net