Combo Box sort problem

J

Jim

In Access 2002 I have a combo box tied to a basic table to the Surname
field. The Surname field is set to order by Surname and the Table is indeed
sorted right.
But in the Combo box on the form the dropdown shows the Surnames are all
over the place.
I can't see how I can sort the dropdown alphabetically from the Combo box
properties.
The row source is set as:
SELECT [Names&Addresses].[Surname], [Names&Addresses].[Title] FROM
[Names&Addresses]
Help please!!
Jim
 
C

Cheryl Fischer

You still have to tell your query how it is to be sorted, so add an Order By
clause to your query:

SELECT [Names&Addresses].[Surname], [Names&Addresses].[Title] FROM
[Names&Addresses] ORDER BY [Surname]
 
J

Jim

Hi Cheryl
Thats it!!
I didn't think that the row source could be modified!!
Many thanks
Jim


Cheryl Fischer said:
You still have to tell your query how it is to be sorted, so add an Order By
clause to your query:

SELECT [Names&Addresses].[Surname], [Names&Addresses].[Title] FROM
[Names&Addresses] ORDER BY [Surname]


--
Cheryl Fischer
Law/Sys Associates
Houston, TX

Jim said:
In Access 2002 I have a combo box tied to a basic table to the Surname
field. The Surname field is set to order by Surname and the Table is indeed
sorted right.
But in the Combo box on the form the dropdown shows the Surnames are all
over the place.
I can't see how I can sort the dropdown alphabetically from the Combo box
properties.
The row source is set as:
SELECT [Names&Addresses].[Surname], [Names&Addresses].[Title] FROM
[Names&Addresses]
Help please!!
Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top