I am attempting to have a contact name displayed in text box Branch_Contact. But the result depends on the selection made in the two previous combo boxes cboBranch_Name and cboBranch_City.
I have made a Query(branch Query) that displays the contact name when run by it self, but when inserted in the control source field for the text box it doesn't work. The query code is as follows:
Select branch_contact,branch_name,branch_city
from branch
group by branch_contact,branch_name,branch_city
Branch_name
criteria: [forms]![mainform]![cbobranch_name]
Branch_city
criteria:[forms]![mainform]![cbobranch_name]
Am i even on the right track? is there an easier way to do this?
You can tell i don't have a lot of experience with this, so any assistance would be great.

I have made a Query(branch Query) that displays the contact name when run by it self, but when inserted in the control source field for the text box it doesn't work. The query code is as follows:
Select branch_contact,branch_name,branch_city
from branch
group by branch_contact,branch_name,branch_city
Branch_name
criteria: [forms]![mainform]![cbobranch_name]
Branch_city
criteria:[forms]![mainform]![cbobranch_name]
Am i even on the right track? is there an easier way to do this?
You can tell i don't have a lot of experience with this, so any assistance would be great.
