R
Rinee
Hi,
I have two tables: EmployeeList which lists companies (with
ContractorID field) and their employees (with EmployeeID field), and
EmployeeDetails which associates details with employee IDs.
I want a simple form to input the employee details. The first field
is a drop down menu to select the company ID. Once that is selected,
I want the next box to give a drop down menu of only the employees
linked to that company.
Looking at old postings, the following update event for the first
combo box seems useful:
< Sub cbo1st_After_Update()
cbo2nd.RowSource="Select * from tblWhat where [KeyValue]='" & cbo1st &
"'"
cbo2nd.requery >
but, as I am a novice, I did not understand what [KeyValue] was meant
to be. I assumed cbo1st should be replaced with whatever I called the
first box...
Please be specific with code. Thanks very much for any help
I have two tables: EmployeeList which lists companies (with
ContractorID field) and their employees (with EmployeeID field), and
EmployeeDetails which associates details with employee IDs.
I want a simple form to input the employee details. The first field
is a drop down menu to select the company ID. Once that is selected,
I want the next box to give a drop down menu of only the employees
linked to that company.
Looking at old postings, the following update event for the first
combo box seems useful:
< Sub cbo1st_After_Update()
cbo2nd.RowSource="Select * from tblWhat where [KeyValue]='" & cbo1st &
"'"
cbo2nd.requery >
but, as I am a novice, I did not understand what [KeyValue] was meant
to be. I assumed cbo1st should be replaced with whatever I called the
first box...
Please be specific with code. Thanks very much for any help