Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box sort

Status
Not open for further replies.

balistikb

Technical User
Nov 12, 2002
177
US
How can I sort the contents of a combo box?
 
Do you have them tied to a query or a table? If so then you can go to that underlying query or table and sort it that way, elsewise (new word, lol), you would use SQL.

If I take a peek in your Windows, to fix a problem, does that make me a "Peeping Tom"? Hmmmmmmmmmmv [pc1][shocked]
 
Well if you have it on a form then all you have to do is go to the Data tab in the Design view properties and go to the control source and in the query change the sort to ascending or descinding, whichever would be your pleasure.

If I take a peek in your Windows, to fix a problem, does that make me a "Peeping Tom"? Hmmmmmmmmmmv [pc1][shocked]
 
If you have a sql as the record source for the combo, then just add &quot;Order By <field>;&quot; at the end of the sql where field is the name of the field that you want the combo to be sorted by.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top