I have a form setup for the addition of materials that belong in a product, with product being the main form and ProductMaterial as the subform, which is continuous.
I have 6 combo boxes all dependent on the one in front of it. These are now working great (thank you people!) in the first record/row of the form.
But when I go to the second record/row to add another material to the product, as soon as I select a different Category (the first in the 6 combo boxes) it requeries all of the other boxes in the subform, not just the individual record/row.
The code I am using is from the FAQ section and looks like this:
Private Sub cboCategory_AfterUpdate()
cboType.Requery
cboDetail.Requery
cboDescription.Requery
cboWidth.Requery
cboLength.Requery
End Sub
Is there any way to have it only requery the specific record/row I am in or should I use some other sort of code?
Any help is appreciated! Please and thank you!
I have 6 combo boxes all dependent on the one in front of it. These are now working great (thank you people!) in the first record/row of the form.
But when I go to the second record/row to add another material to the product, as soon as I select a different Category (the first in the 6 combo boxes) it requeries all of the other boxes in the subform, not just the individual record/row.
The code I am using is from the FAQ section and looks like this:
Private Sub cboCategory_AfterUpdate()
cboType.Requery
cboDetail.Requery
cboDescription.Requery
cboWidth.Requery
cboLength.Requery
End Sub
Is there any way to have it only requery the specific record/row I am in or should I use some other sort of code?
Any help is appreciated! Please and thank you!