enter zip code and come up with city

y2kmental

Registered User.
Local time
Today, 06:40
Joined
Jan 12, 2004
Messages
10
hi, I just want to say how much this forum has helped me. now for the question


On a form, I want to type a zip code and come up with its city in the next field automatically. I already have all the zip and citys in a table. Would anyone know how to do this?
 
how do i use it?
 
doesnt really seem to work the way i want it to, can you show me an example?
 
could you possible write out the dlookup command for me?

When I select from the field ZIP I want it to show up in a text box

its on the form, LogBook

the zip code, city, and ID is comming from the table TBLCityZip

Thanks in advance
 
but when i type the zip code in one box, i want the city to automatically be filled in the next field
 
Since the city is already stored in your db you don't need to store it again, just display it. Add an unbound textbox to your form, set its control source to = [YourCombo].[Column](1), where column 1 is the second column of your combo
 
but lets say i would like to overide this function. Right now I have new yorks zip codes in my table, but sometimes we may need to enter out of state zips, will this let me type over them?

thanks for your help
 
if i need to enter the town manually, how do i overide it?
 

Users who are viewing this thread

Back
Top Bottom