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

Sorted combo box

Status
Not open for further replies.

topgeek

MIS
Oct 28, 2001
59
GB
I have two combo boxes. One displays UK towns and the other UK counties. The look-ups are from a single text field tables. The towns drop-down displays the towns in alphabetical order, but the counties drop-down appears o be random in order. I have set the columns to A-Z sorting in the tables and when I open the tables they both appear in alphabetical order. Any idea where I'm going wrong?

Best Regards
 
Hi
Have you checked out the row source of your combobox? It may be set to a query. If so, you could set the sort on the query. I think this happens if the table is merely sorted, rather than indexed on the field you wish to sort by.
 
Click the build(...) button next to the Rowsource of the combobox in the property box. You will be presented a query in the design view set sort ascending in the countries field. Remove if there is any other sorting

________________________________________
Zameer Abdulla
Visit Me
The best thing to spend on your child is your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top