Combobox not sorting

bd528

Registered User.
Local time
Yesterday, 18:38
Joined
May 7, 2012
Messages
111
Hi all,

I have a combobox with a row source of :-

Code:
SELECT tblBrokerages.ID, tblBrokerages.Brokerage_Name FROM tblBrokerages ORDER BY tblBrokerages.Brokerage_Name;

The bound column is 1 and the column count is 2

When new entries are added to tblBrokerages, they appear at the bottom of the combobox, however, I'd like the combobox in alphabetical order. Despite the row source above, the combobox remains in tblBrokerages.ID order.

Can anyone confirm what needs to be changed? Thanks in advance.
 
Check the cbo property 'sorted'. It may be on.
If not, in the query swap the field order, make name the 1st column and sort it.
And set bound col =2.
 
If not, in the query swap the field order, make name the 1st column and sort it.
And set bound col =2.
This worked. Thank you.
 

Users who are viewing this thread

Back
Top Bottom