I'd only add to Tom's excellent answer that Zip codes change and are
augmented by the Post Office, and they publish new files periodically
((monthly or thereabouts, if memory serves).
The easiest way to get up-to-date files in the format you want, if what the
Post Office provides is not your format, is to subscribe to a third-party
service that converts and provides the files on a schedule. One provider of
ZIP code data usable with Access is FMS, Inc.
http://www.fmsinc.com/products/zipcode/index.html. I have not used, nor
tried, their product so cannot offer an opinion, though I see there is a
free trial that you can download. There may be other suppliers, as well.
Larry Linson
Microsoft Access MVP
"Tom Ellison" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>
>
> "Alene" <(E-Mail Removed)> wrote in message
> news:82B6ADB3-3B04-4B37-984E-(E-Mail Removed)...
>> How do I make MS Access fill in the city when I type the zip code in the
>> form?
>
>