Hi.
I have a combobox that gets it's values from a query. Then upon updating the combobox, two textboxes should update their values based on what is selected.
Here is the query called qryRequestor (simplified):
SELECT alias, dept, phone
FROM list
Then in the Combobox properties, I have row source type set to Query/Table and row source set to qryRequestor
In the cboRequestor_AfterUpdate() event in VBA code, I have the following:
Me!txtDepartment = Me![cboRequestor].Column(1)
Me!txtPhone = Me![cboRequestor].??????
where txtDepartment and txtPhone are the textboxes that need to be updated. The txtDepartment on updates just fine, but I can't get the txtPhone one to update. All of the properties are identical, yet it just won't work. What do I replace the question marks with to get the phone field inserted into the textbox?
Thanks in advance.
Faded
I have a combobox that gets it's values from a query. Then upon updating the combobox, two textboxes should update their values based on what is selected.
Here is the query called qryRequestor (simplified):
SELECT alias, dept, phone
FROM list
Then in the Combobox properties, I have row source type set to Query/Table and row source set to qryRequestor
In the cboRequestor_AfterUpdate() event in VBA code, I have the following:
Me!txtDepartment = Me![cboRequestor].Column(1)
Me!txtPhone = Me![cboRequestor].??????
where txtDepartment and txtPhone are the textboxes that need to be updated. The txtDepartment on updates just fine, but I can't get the txtPhone one to update. All of the properties are identical, yet it just won't work. What do I replace the question marks with to get the phone field inserted into the textbox?
Thanks in advance.
Faded