Solved

Sorting Data in a DATA BOUND Combo box

Posted on 1998-08-11
1
139 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 10 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 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