Zip Code Lookup

J

jrcigar

I am trying to look up a territory for a given zip code. Can someone please
help?

I have one table with a list of about 10,000 stores including their
zipcodes. I have another table with about 3,000 zip codes and their
corresponding territories. I'd like to return the territory that corresponds
to each of the store's zip codes.

Thanks!
 
T

tina

make sure the data type of the zip code fields in the two tables match -
both Number, or both Text.

open a query in Design view. add tblStores, then add tblZipCodes. in
tblStores, click on the ZipCode field and drag a link to the ZipCode field
in tblZipCodes. make it a LEFT JOIN; that is, "show all records in
tblStores, and and only matching records in tblZipCodes".

drag the fields from each table, that you want in the query output, into the
query grid.

hth
 
J

jrcigar

Thanks, tina! That worked!

tina said:
make sure the data type of the zip code fields in the two tables match -
both Number, or both Text.

open a query in Design view. add tblStores, then add tblZipCodes. in
tblStores, click on the ZipCode field and drag a link to the ZipCode field
in tblZipCodes. make it a LEFT JOIN; that is, "show all records in
tblStores, and and only matching records in tblZipCodes".

drag the fields from each table, that you want in the query output, into the
query grid.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top