View Full Version : Combo Box Sorting


mcreedie
03-16-2001, 02:35 AM
I have a combo box on a form that i just can't seem to get to appear in an a-z format. Does anyone know how.

Many thanks in anticipation,

Rob

DMC
03-16-2001, 02:42 AM
Are the values in your combo box based on a query or values that you've typed in? If it's a query then just adjust the sort order of the query to reflect the column that you want to a-z. If its values that you've entered yourself then you're a bit stuck. If its only a few rows then you're better off retyping it in. Good Luck :-)

llkhoutx
03-16-2001, 11:00 AM
Make the recordsource of your combo box a query which has the column which is displayed soreted appropriately.

zunan
03-16-2001, 06:20 PM
You have an SQL statement as the row source for the combo box.At the end of the statement put this: ORDER BY [TableName].[FieldName] using the field that you want sorted.