Solved

DataCombo box sorting

Posted on 2000-05-05
3
242 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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 …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

829 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