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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sort a listbox 1

Status
Not open for further replies.

Duane8889

Programmer
Dec 14, 2001
46
0
0
US
Hello
I would like to sort the items in a listbox alphabetically.
In visual basic there is a sort property but I don't see one in Access 2k. What is the best way to sort listbox items?

Duane
 
add an ORDER BY clause in the SQL code of the RowSource property.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks PHV!
I went to the RowSource query builder and just set the sort to ascending. Rather simple if you know what to do :)

Duane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top