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

Sort drop down list

Status
Not open for further replies.

LKalka

MIS
Aug 15, 2001
6
US
[smile2]I have a table in which one column is a drop down list that gets its info from another table called Customers. The problem is that the list of customers doesn't sort when you add new ones. So you have to look through the entire list to find the customer you want to use. The users then sometimes end up creating a new, duplicate customer by entering a name that is only slightly different from the existing entry i.e. use Ltd. on one and not on the other.

Is there a way to have this list sort automatically when new customers are added??
 
On your form, in the AFTER UPDATE propery of the dropdown box, create an event and add

Me.Refresh

as the code.

Hope this helps.

Jim "Get it right the first time, that's the main thing..." [wavey]
 
The standard way around this problem is to use a query as the data source for the combo box and put the appropriate sort in the query grid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top