M
Meemers
I have a database in which there are (at least) 2 tables: Companies and Cities.
Companies includes fields for addresses including City, State and Zip;
Cities just contains City, State and Zip fields. I want to be able to
automatically "populate" the State and Zip fields in Companies based on the
info in Cities. I thought I could do this via a Companies Form based on the
Companies table, using DLookup to get the State and Zip data from the Cities
table. BUT I am getting error messages when I click on the State field on the
form.
On the form, I used Event Builder for the State field as follows:
OnCLick =DLookup (["State"], "Cities", "[City] = Forms![Companies]!City")
Companies includes fields for addresses including City, State and Zip;
Cities just contains City, State and Zip fields. I want to be able to
automatically "populate" the State and Zip fields in Companies based on the
info in Cities. I thought I could do this via a Companies Form based on the
Companies table, using DLookup to get the State and Zip data from the Cities
table. BUT I am getting error messages when I click on the State field on the
form.
On the form, I used Event Builder for the State field as follows:
OnCLick =DLookup (["State"], "Cities", "[City] = Forms![Companies]!City")