Hello there
I have a problem where i have 6 queries & three combo boxes. When selecting the first combo box (in a form) you have three options. Clicking on one of these three options will determine the information shown in the other two combo boxes. As i am using 3 queries for combo box 2 and three queries for combobox 3 i need the right query to show its results in the combobox depending on the selection on combo box 1. To accomplish this i am using an on click event and if else statements
For example
Onclick event for when i have selected an option in combo box 1 :-
Combo box two should show
if ComboBox1 = option1 then
ComboBox2 = SELECT[QUERY1].[QUERYFIELD] from query1;
else
If ComboBox1 = option2 Then
ComboBox2 = SELECT[Query2].[queryfield] from query2;
Else
ComboBox2 = SELECT[Query3].[queryfield] from query3;
As you can see i am using what should be rowsource but into code due to the three queries which all hold different data.
Please can anyone help me i am stuck.
Thanks
I have a problem where i have 6 queries & three combo boxes. When selecting the first combo box (in a form) you have three options. Clicking on one of these three options will determine the information shown in the other two combo boxes. As i am using 3 queries for combo box 2 and three queries for combobox 3 i need the right query to show its results in the combobox depending on the selection on combo box 1. To accomplish this i am using an on click event and if else statements
For example
Onclick event for when i have selected an option in combo box 1 :-
Combo box two should show
if ComboBox1 = option1 then
ComboBox2 = SELECT[QUERY1].[QUERYFIELD] from query1;
else
If ComboBox1 = option2 Then
ComboBox2 = SELECT[Query2].[queryfield] from query2;
Else
ComboBox2 = SELECT[Query3].[queryfield] from query3;
As you can see i am using what should be rowsource but into code due to the three queries which all hold different data.
Please can anyone help me i am stuck.
Thanks