I've been beating myself silly trying to figure this out on my own, but it's just not happening.
I'm creating a database form that will store company address information. It has a combobox control whose list parameter is loaded by the contents of a query so that, if a company is selected that has already been entered, it will auto-complete the name.
Then, there are fields for the company address, city, state, zip, phone number, contact info, etc. But, it is tedious to fill in these things e-v-e-r-y--s-i-n-g-l-e--t-i-m-e.
I have created a set of queries that individually pull the related data - address, city, state, etc. - using the text field of the combobox as the criteria (two fields in each query; the company name and the required data with the company name field not displayed).
So, I've been trying to create an Exit event for the company name combobox that will run a VBasic procedure that calls each query and populates each field in the form accordingly.
It just ain't a-workin'.
Any ideas on how I can get address and contact fields in a form to auto-populate once the company is selected from a combobox?
I'm creating a database form that will store company address information. It has a combobox control whose list parameter is loaded by the contents of a query so that, if a company is selected that has already been entered, it will auto-complete the name.
Then, there are fields for the company address, city, state, zip, phone number, contact info, etc. But, it is tedious to fill in these things e-v-e-r-y--s-i-n-g-l-e--t-i-m-e.
I have created a set of queries that individually pull the related data - address, city, state, etc. - using the text field of the combobox as the criteria (two fields in each query; the company name and the required data with the company name field not displayed).
So, I've been trying to create an Exit event for the company name combobox that will run a VBasic procedure that calls each query and populates each field in the form accordingly.
It just ain't a-workin'.
Any ideas on how I can get address and contact fields in a form to auto-populate once the company is selected from a combobox?