Thank you for taking the time to look at this thread......
I have a form where the use enteres data, text field 1 is for the city and text field 2 is for the zip code. I have a table [reftblCityZip] where common city are listed in [city] and corresponding zipcodes are listed in [zipcodes].
I can write in vba code "if [city] = xxxxxx then [zipcodes]= yyyyy". But I would like for the program to look up the city and the zip code in [reftblCityZip] and then enter the zipcode in the second text field. Then all I have to do is merely update the table when new other cities become used frequently. If the city does not exist in the table, the the second text field would be blank or "". I can write the query to find the zipcode but i have been uable to figure out how to get the result of the query into the second text field.....................
Once again, thank you for your time........
Shawn
I thank all of you. What you do for others is very special. What you are is special.
Shawn
I have a form where the use enteres data, text field 1 is for the city and text field 2 is for the zip code. I have a table [reftblCityZip] where common city are listed in [city] and corresponding zipcodes are listed in [zipcodes].
I can write in vba code "if [city] = xxxxxx then [zipcodes]= yyyyy". But I would like for the program to look up the city and the zip code in [reftblCityZip] and then enter the zipcode in the second text field. Then all I have to do is merely update the table when new other cities become used frequently. If the city does not exist in the table, the the second text field would be blank or "". I can write the query to find the zipcode but i have been uable to figure out how to get the result of the query into the second text field.....................
Once again, thank you for your time........
Shawn
I thank all of you. What you do for others is very special. What you are is special.
Shawn