I have continuous form as sub form. This sub form has two combo box.
1) Defect Type
2) Defect Code
The defect code based on defect type. This is what i want to do.
When user select value from first combo box which is defect type then i want to rebind the defect code combo box.
I have done this so far.
1) create first combo box and bind the value from table called defect type.
2) Create secpmd combo box and bind the value from table called defect code and add where cause defect type = forms1subform!cmbdefecttype
3) added code on change for first combo box.
cmbDefCode.Requery
This works but update value for all rows insted on that specific row. If i have four line for sub form and if i select one defect type then insted on change defect code value for that line it change for all four line. How can i only change defect code value for only current row not all rows.
Thanks
1) Defect Type
2) Defect Code
The defect code based on defect type. This is what i want to do.
When user select value from first combo box which is defect type then i want to rebind the defect code combo box.
I have done this so far.
1) create first combo box and bind the value from table called defect type.
2) Create secpmd combo box and bind the value from table called defect code and add where cause defect type = forms1subform!cmbdefecttype
3) added code on change for first combo box.
cmbDefCode.Requery
This works but update value for all rows insted on that specific row. If i have four line for sub form and if i select one defect type then insted on change defect code value for that line it change for all four line. How can i only change defect code value for only current row not all rows.
Thanks