?
Solved

Sorting Data in a DATA BOUND Combo box

Posted on 1998-08-11
1
Medium Priority
?
146 Views
Last Modified: 2010-04-30
Hi!

I just want to ask how can I sort the content of a DATABOUND Combo box (i.e. Alphabetically). Since the index of the combo box is the code link to the base table which is sorted ASCENDING BY CODE what should I do to sort the DESCRIPTION that populate in a DBCOMBO box control.

Thanks in Advance.

Brandon
0
Comment
Question by:bmaranan
1 Comment
 
LVL 14

Accepted Solution

by:
waty earned 30 total points
ID: 1468605
You have to do your select as following

Select YouCode, YouDescription from YourTable Ascending by YouDescription

Youd Combo will be sorted by the description. The related code doesn't need to be sorted.


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question