Solved

DataCombo box sorting

Posted on 2000-05-05
3
239 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now