Hi Jim,
Forms are used to add data to a table, edit data in a table and display data
from a table or query. You need a table of cities that looks like:
TblCity
CityID
City
Create a query based on TblCity co you can alphabetize the cities. The query
will have these fields:
CityID
City
Set the sort on City to ascending.
Open your form in design view. Click on the toolbox button at the top of the
screen, select combobox from the list of tools and draw the combobox on the
form. Select the combobox, open properties and go to the Data tab. Set the
Row source property to your query based on TblCity. Set the Bound Column
property to 1. Bo to the Format tab. Set the Column Count property to 2 and
the Column Widths property to 0;1.5. Your combobox will now display the
cities in alphabetical order in the list and when you select a city, the
combobox will have the value of CityID. When the current record is saved,
the value of CityID will be saved to the table your form is based on.