OrderBy on ComboBox

D

Dkline

I have a ComboBox on a form which needs to be alphabetized. In it source
table, the ID is the Primary Key and is in Column #1. The bound column is
Column #2 - which has the names. I want the names to be sorted
alphabetically in ascending order when selecting from the combobox..

Problem appears to be that the visible portion of the list in the box is the
bound column but the order is set by the ID.

The combobox does not have an OrderBy property. How can I do this?
 
G

Gerald Stanley

Try changing the RowSource SQL to include an ORDER BY
clause to give you the sort sequence that you are after.

Hope This Helps
Gerald Stanley MCSD
 
D

Dkline

Thank you. Glad it was a simple solution.

Gerald Stanley said:
Try changing the RowSource SQL to include an ORDER BY
clause to give you the sort sequence that you are after.

Hope This Helps
Gerald Stanley MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top