Combo Box

J

JJ

I created 2 combo boxes, the first one I called it as "Phase" and the second
as "Task". I set Row Source for "Task" to "SELECT Task FROM Task WHERE
Phase=FORMS![Add Task]!Phase;". So, a possible values for "Task" is dependent
on the value selected in "Phase" combo box. "Phase" would always present the
correct values for the FIRST value selected for "Phase". However, "Task"
would display the SAME SET of values even though a different value from
"Phase" has been selected. Note: I have confirmed that each "Phase" value has
different set of records.

Can anybody suggest a solution ? Thanks.
 
B

Beetle

In the After Update event of your Phase combo box put;

Me![NameOfYourTaskCombobox].Requery

HTH
 
J

JJ

Beetle, it works. Thank you much. - JJ

Beetle said:
In the After Update event of your Phase combo box put;

Me![NameOfYourTaskCombobox].Requery

HTH

JJ said:
I created 2 combo boxes, the first one I called it as "Phase" and the second
as "Task". I set Row Source for "Task" to "SELECT Task FROM Task WHERE
Phase=FORMS![Add Task]!Phase;". So, a possible values for "Task" is dependent
on the value selected in "Phase" combo box. "Phase" would always present the
correct values for the FIRST value selected for "Phase". However, "Task"
would display the SAME SET of values even though a different value from
"Phase" has been selected. Note: I have confirmed that each "Phase" value has
different set of records.

Can anybody suggest a solution ? Thanks.
 
Top