I am not aware of any such document regarding auto-filling address
information based on zip codes. Typically, you would use a multi-column
combo box to implement auto-filling data based on a selection from a list.
Your example, however, may pose problems unless your application will *only*
deal with cities which have only a single zip code. For example, in
Houston, TX, Los Angeles, CA, New York, NY, there are hundreds of zip codes
available for each city. Even a small city may have two zip codes.
The following example is for a combo box from which a user will select a zip
code and, based on that selection, city and state will be auto-filled. You
can, of course, edit it to work with your application.
1. Make the control on your form for zip code a combo box.
2. Set the properties of your combo box as follows:
Row Source: Select ZipCode, City, State from tblZipCodes Order by ZipCode
Column Count: 3
Bound Column: 1
Control Source: name of zipcode field in the table which is the
RecordSource of your form
3. In the After Update event for your combo box, insert the following code,
which will update City and State fields on your form:
Me!City = Me!MyComboBox.Column(1)
Me!State = Me!MyComboBox.Column(2)
hth,