Solved

Sorting Data in a DATA BOUND Combo box

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now