A combo box of countries' name with USA and Canada at the top 2

B

Boon

I want to create a combo box of a list contries. I want it to be in a way
that the first two countries are USA and Canada, and the rest is
alphabetically. (As we have seen so often on websites.)

How can I do this? Do I need to create a table that put the countries in
this format? Currently, my combo box reads the country names from a query.
(That query is the select query that selects unique countries' name from
another table.)

Thanks.
B
 
D

Dirk Goldgar

Boon said:
I want to create a combo box of a list contries. I want it to be in a way
that the first two countries are USA and Canada, and the rest is
alphabetically. (As we have seen so often on websites.)

How can I do this? Do I need to create a table that put the countries in
this format? Currently, my combo box reads the country names from a query.
(That query is the select query that selects unique countries' name from
another table.)


Base your combo box on a query of your original query, along these lines:

SELECT Country FROM qryCountries
ORDER BY IIf(Country="USA", "1", IIf(Country="Canada", "2", Country))
 

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

Top