Hi David,
Your only option for sorting a Value List based combo box is to enter the
values in alphabetical order. This is just one reason why value list are not
considered so versatile. Another reason is that if you need to add or remove
an item from the list, you'll need to open the form in design view.
If you create a new table, and add the values that are currently in your
value list, you will be able to easily apply a sort order. You'll also be
able to add and remove items from the combo box simply by adding or removing
records from a table.
If I change the 'Row Source Type to 'Table/Query' then I will get
the 3-dot button in the 'Row Source' box, but at that point I am lost.
Create your table first. Add the values from your value list. You'll likely
want to set the first column (the column with values like PR, PS, etc.) as
the primary key. Then go back and change the row source type to Table/Query
and click on the 3-dot button in the Row source box.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
:
Al,
Thank you for the speedy response. Apart from not knowing what I am doing, I
am not sure I have done what you suggest.
I have an underlying database into which I want to input information via the
form. That database does, of course, have a number of fields. The combo
boxes I created, with the Access wizard, simply have the information I have
typed in them, e.g. PR, Probation, PS, Prison Service (for columns 1,2,1,2).
The input will go into a particular field of the database, but how does this
help sort my combo box?
In case it is relevant, the combo box properties show the 'Row Source Type'
as "Value List" and the'Row Source' as "Pr;Probation;PS;Prison Service",
etc. When I right click the Row Source I do not get teh 3-dot button but a
drop down box with, as the second and only other row, the name of my
database. If I change the 'Row Source Type to 'Table/Query' then I will get
the 3-dot button in the 'Row Source' box, but at that point I am lost. If I
choose to "Add" my database I have a list of fields in the database but they
are not what I am after - I need the list that is column 1 of my combo box.
Could you point me further, please?
David.