Dear Alene:
You would first need a table that gives the name of the city given the zip
code.
Unfortunately, there is sometimes more than one city or town with the same
zip code. In less populated portions of the country there can be several
towns with the same zip code. The zip code represents a single post office.
There could be only one post office for several small towns.
So, if you have:
John Smith
101 Main Street
55111
That is, not specifying the city or state, but using the zip code to
"lookup" the city and state, there's a possible problem. If there are 2
towns in that zip code, and they both have a Main Street, this address could
be for two different buildings in different towns.
Perhaps this is not terribly common, but not impossible.
You could still do this, but allow users to correct the City if its wrong.
It would then be quite useful 99% of the time.
Tom Ellison