Zip Code Problem

J

jwcrosby

I know the routine for entering a zip and having it "find"
the appropriate city and state from a separate table.
That's the easy part.

But how do you handle the fact that some zip codes are
assigned to more than one city? For instance, Amherst,
Pelham, Cushman and South Amherst, Mass. all have the same
zip code (i.e., 01002).

So, if I'm entering a person's data and plug in "01002"
for his zip code, but it finds the wrong city, what are my
options?

Suggestions?
 
A

Adrian Jansen

Make a query 'on the fly' filtered on the zip code you selected, then use it
as the recordsource for a combo or list box. The user then sees just the
few cities that match, and is prompted to select the correct one.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
A

Armen Stein

Make a query 'on the fly' filtered on the zip code you selected, then use it
as the recordsource for a combo or list box. The user then sees just the
few cities that match, and is prompted to select the correct one.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control

And to save them time, you can default in the City if only one matches,
as most will. Just make them choose one if more than one city matches.
 
A

Adrian Jansen

Good point Armen.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 

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