You might wnt to re-think the whole idea of entering a city and having the
State and Zip fields get populated automatically. What one of the dozen of
Zip codes would you use if someone typed in Boston? What state would you
use if the user typed in Springfield? MA, MO, PA??? Well you get the idea.
A better stragety might be to have the user type in the Zip and you populate
the City and County and State fields. You will need a table with 4 fields
Zip, City, County, State. You will also have to deal with how the table
gets updated when you get a new zip code, or when the same zip code might
refer to more than one town.
Basically IMHO this is a can of worms that I solved in the past by doing
nothing, and just letting the users enter the information.
Ron W
Danielle said:
I have an Excel spreadsheet that has a listing of zipcodes, towns, and
counties. Is there anyway to import this to my MS Access database so that
when I enter a city, the state, zipcode and county will automatically
populate so I don't have to type them in each time? For example, whenever I
put in city "Harwich", it would auto populate the fields for state with
"MA", zipcode field with "02645", and county "Barnstable".
I have looked at the help icon but it didn't make sense to me. Any
suggestions??