Hi all,
I have 2 ComboBoxes
The first has 3 choices
Planning
Building Control
Planning & Building Control
The second combobox should display criteria from a table based upon
what the user selects from the first box.
In the table there are Department, CodeDescription, Code.
I can get the second combobox to display all the values in this table
called costcode. But i want it only to display the relevant items.
I have sort of got this working by using
SELECT [costcode].[code], [costcode].[CodeDescription],
[costcode].[Department] FROM costcode WHERE
((([costcode].[Department])=[Forms]![CreateNewRecordForm]![PaidTo_combobox]))
ORDER BY [costcode].[Department], [costcode].[CodeDescription];
Paid_To_Combobox being my first combobox.
What happens when i do this is that it works for planning or building
control but when it is both i want to display both however the table
only has codes for planning and codes for building control. And also if
i change the first box i want the second box to catch up with the
changes.
Can anyone help.
Please let me know if you require any more info.