C
CS
I have a DB which lists clients from a limited number of cities/towns (25 to
30 cities/towns) and would like to auto-fill the zip code (or at least offer
a second combo with a filtered list of zip code choices) .
This is my problem. Some of the cities have several zip codes, and some of
the zip codes include several towns. Since the person doing the data entry
is most likely to know the city/town rather than the exact zip code off the
top of their head, I am leaning toward having them fill in the city/town
(from a combo box), then having the zip code field as a combo box populated
with the options (if any) for that city/town (most towns have only one
option). This information goes to tblCustomer in the appropriate address
fields.
Here's my dilemma -- I have a concern that the user might not KNOW that
there is any other option for that city/town, as the first option for the
town will show by default in the zip combo box.
I want to somehow alert the user that there are several options for a given
town, and am not sure what is the best way to go about it. I had thought
about a pop-up message with the various zip-code alternatives available --
user clicks the correct one, which selects the correct record from the table
described below.
This is how it's structured now:
tblCities contains 3 fields
CityName
CityZip
CityState
There is no primary key in this table, and each town may have several
records, with a different zip for each record. I suspect this is the wrong
approach.
I had considered:
tblCities with 6 fields
City Name (PK)
CityZip1
CityZip2
CityZip3
CityZip4
CityState
It is highly unlikely that any of the towns involved would have more than 4
zips (its a small business dealing with rural townships, for the most part).
I'd appreciate any help or advice you could give on this.
Thanks,
CS
30 cities/towns) and would like to auto-fill the zip code (or at least offer
a second combo with a filtered list of zip code choices) .
This is my problem. Some of the cities have several zip codes, and some of
the zip codes include several towns. Since the person doing the data entry
is most likely to know the city/town rather than the exact zip code off the
top of their head, I am leaning toward having them fill in the city/town
(from a combo box), then having the zip code field as a combo box populated
with the options (if any) for that city/town (most towns have only one
option). This information goes to tblCustomer in the appropriate address
fields.
Here's my dilemma -- I have a concern that the user might not KNOW that
there is any other option for that city/town, as the first option for the
town will show by default in the zip combo box.
I want to somehow alert the user that there are several options for a given
town, and am not sure what is the best way to go about it. I had thought
about a pop-up message with the various zip-code alternatives available --
user clicks the correct one, which selects the correct record from the table
described below.
This is how it's structured now:
tblCities contains 3 fields
CityName
CityZip
CityState
There is no primary key in this table, and each town may have several
records, with a different zip for each record. I suspect this is the wrong
approach.
I had considered:
tblCities with 6 fields
City Name (PK)
CityZip1
CityZip2
CityZip3
CityZip4
CityState
It is highly unlikely that any of the towns involved would have more than 4
zips (its a small business dealing with rural townships, for the most part).
I'd appreciate any help or advice you could give on this.
Thanks,
CS