Guest_imported
New member
- Jan 1, 1970
- 0
This novice needs some code help. I know that I need to execute an"on change event". One Table: Zipcode, fields: ZipI(Zipcode), City, StateCode. Second table (the form is based on): Broker, Many Fields including: Zipcode, City, State. I have an existing form for each that maintains the data.
The problem: When a user enters a zipcode in the Broker based form I want to change the value of CIty & State on the form (auto populate so they do not have to type the City or State code) by getting the corresponding value from the Zip Table. But if the zip is not found I want to open the Zip form (without closing the current form) that mantains the zip code table so they can enter the City and State (assuming second form can automatically open a new record with the entered zip that was not found in the main form) and then when that form closes populate the city and state automatically.
Both my existing forms for broker and zip code are based upon queries not directly tied to the underlying table.
Thanks for any help !!
The problem: When a user enters a zipcode in the Broker based form I want to change the value of CIty & State on the form (auto populate so they do not have to type the City or State code) by getting the corresponding value from the Zip Table. But if the zip is not found I want to open the Zip form (without closing the current form) that mantains the zip code table so they can enter the City and State (assuming second form can automatically open a new record with the entered zip that was not found in the main form) and then when that form closes populate the city and state automatically.
Both my existing forms for broker and zip code are based upon queries not directly tied to the underlying table.
Thanks for any help !!