Solved

DataCombo box sorting

Posted on 2000-05-05
3
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 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…

726 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