Solved

DataCombo box sorting

Posted on 2000-05-05
3
243 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

679 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