I am quite new to the world of ACCESS. I am preparing a database of
Suppliers. I have two tables INFO & LOCATION. The info form includes a number
of fields with respect to the basic information of the supplier and the
location form consists records of Area, City & Country. Example of such
records are:
Area City Country
Area1 City1 Country1
Area2 City1 Country1
Area3 City2 Country1
Area4 City2 Country1
Area5 City3 Country2
Area6 City3 Country2
Area7 City4 Country2
Area8 City4 Country2
I want the main data entry form to be showing the location's three fields
like:
Upon selection of the Country field a list should open showing the UNIQUE
names from the location table i.e.:
Country1
Country2
Then upon selecting the City area UNIQUE names of cities should be showing
in a list i.e. if Country1 is selected:
City1
City2
Finally the Area field shows the names falling in such a City i.e. if City1
is selected:
Area1
Area2
The lists should also be showing the options in an alphabetically ascending
form no matter how the areas have been entered in the table.
How can I devise such combo boxes.
Thanx in advance

Signature
Best Regards,
FARAZ A. QURESHI
=?Utf-8?B?RkFSQVogUVVSRVNISQ==?=
<FARAZQURESHI@discussions.microsoft.com> wrote in
news:BDB56225-38BC-4B4D-BB36-44A961E1B88A@microsoft.com:
> I am quite new to the world of ACCESS. I am preparing a database
> of Suppliers. I have two tables INFO & LOCATION. The info form
[quoted text clipped - 40 lines]
>
> Thanx in advance
Build your combo boxes upon DISTINCT queries, the first being
Country. In query design view, select your table, double-click the
Country feld to put it in the grid, then right click to open the
query design menu. Select properties. Set the Unique Values property
to Yes.
For the second combob box query, use the fields City and Country
Uncheck the Show box below country. Enter in the Country's criteria
row the following. Forms!NameOfForm!NameOfCountryCombobox.
substituting actual names for the NameOf....
For the third combo box query. you need all three fields, with Area
shown and criteria in the other twe.
Now save the form, and select the country combobox. in hte
properties menu, select the event tab, the After_Update event.
select [Event Procedure] from the dropdown and click the build (...)
button.
Type: NameOfCityCombobox.requery
and NameOfAreaCombobox.requery
return to the form and select the city combobox.
put NameOfAreaCombobox.requery in the same procedure for this combo
box.
Set Unique Values to yes again.

Signature
Bob Quintal
PA is y I've altered my email address.
** Posted from http://www.teranews.com **