Hi everyone!
I have a combo box in a subform that AutoFills textboxes in the subform.
The subform combo box also has a Dlookup procedure on "after update" event that has a criteria on what the AutoFill procedure will populate based on the mainform textboxes that is AutoFilled by a mainform combo box.
Everything works fine, until I change the value of the Mainform combobox, which changes the value of the textboxes on the mainform from which the Subform combobox gets its criteria for the Dlookup procedure.
My problem is that the Subform combobox does not re-populates the subform textboxes when I change the value of the mainform combobox. I still need to select the same item in the subform combobox list to initiate the AutoFill procedure of the subform textboxes.
I would like to re-run the AutoFill procedure of the subform combobox when I update the main form combobox. I tried the following procedures on "afterupdate" event of mainform combobox, but did not re-populate the subform text boxes.
Forms!MainformName!SubformName!SubformComboBoxName.Requery
Forms!MainformName!SubformName.Requery
Me.SubformName.Requery
Thanks!
I have a combo box in a subform that AutoFills textboxes in the subform.
The subform combo box also has a Dlookup procedure on "after update" event that has a criteria on what the AutoFill procedure will populate based on the mainform textboxes that is AutoFilled by a mainform combo box.
Everything works fine, until I change the value of the Mainform combobox, which changes the value of the textboxes on the mainform from which the Subform combobox gets its criteria for the Dlookup procedure.
My problem is that the Subform combobox does not re-populates the subform textboxes when I change the value of the mainform combobox. I still need to select the same item in the subform combobox list to initiate the AutoFill procedure of the subform textboxes.
I would like to re-run the AutoFill procedure of the subform combobox when I update the main form combobox. I tried the following procedures on "afterupdate" event of mainform combobox, but did not re-populate the subform text boxes.
Forms!MainformName!SubformName!SubformComboBoxName.Requery
Forms!MainformName!SubformName.Requery
Me.SubformName.Requery
Thanks!