Solved

DataCombo box sorting

Posted on 2000-05-05
3
241 Views
Last Modified: 2008-02-20
How can I sort the items in a DataCombo box.  There is no "Sorted" property like there is for a standard combo box.  Am I overlooking a simple thing to do this?
0
Comment
Question by:gwillson
3 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 75 total points
ID: 2781014
since it is a data bounded control if you want it sorted you should have it linked to a field that is sorted via an sql statement.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 2781032
As Azra states set your recordset Source to read something like..

SELECT * FROM MyTable
ORDER BY MyField Asc

-or-

Desc for Descending.
0
 

Author Comment

by:gwillson
ID: 2781339
I had the combobox linked to a table that I am using, but I can also create a query to do what I need for the combobox.
Thanks for the suggestions.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

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 have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

773 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