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

Sort Combo

Status
Not open for further replies.

maha12

Programmer
Sep 8, 2002
79
LK
Hi

I want to get numbers to be sorted asc. The result does not turn what I want.

My values are:-
10
6
7
2

After thay are sorted
10
2
6
7
I hope to get sorted as follows
2
6
7
10
How to get.

Tks.
Maha
 
Where do these values come from ?
How do you fill you combo ?
 
Because you are asking for a numerical sort, as opposed to one based on the string values, you will not be able to use the sorted property. Set it to false.

Now simply add your values in the order you wish them to appear - ie smallest first.

mmilan
 
Add the items to a disconnected recordset, sort that as you want, then add the items from the disconnected recordset into an unsorted listbox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top