VWP1
09-22-2011, 02:24 PM
I have a continuous form, with a Label_Click() event, which opens a popup form.
The popup form is a "data entry only" form, and adds a record to the supporting table - the same table which feeds the combo box on the parent form (Row Source).
When I enter a new item in the popup form (which is adding a new record in the same table as the combo box), I close the popup form, and the combo box on the parent form doesn't display the new record.
SO...
I added a short procedure to the popup Form_Close() event:
Private Sub Form_Close()
DoCmd.Requery
End Sub
The combobox (named cboRecipeIngredients) doesn't have the new record after closing the popup form. I need it to.
I'm trying to experiment with Me.cboRecipeIngredients.Requery in the parent form, once the popup has been closed.
I cannot seem to quite get the combo box...ALONE...to requery. Requerying the entire form results in the form closing and opening, it seems, and that opens up a can of worms with my cursor on the particular recipe entering process.
Can the combo box...ALONE...be requeried?
The popup form is a "data entry only" form, and adds a record to the supporting table - the same table which feeds the combo box on the parent form (Row Source).
When I enter a new item in the popup form (which is adding a new record in the same table as the combo box), I close the popup form, and the combo box on the parent form doesn't display the new record.
SO...
I added a short procedure to the popup Form_Close() event:
Private Sub Form_Close()
DoCmd.Requery
End Sub
The combobox (named cboRecipeIngredients) doesn't have the new record after closing the popup form. I need it to.
I'm trying to experiment with Me.cboRecipeIngredients.Requery in the parent form, once the popup has been closed.
I cannot seem to quite get the combo box...ALONE...to requery. Requerying the entire form results in the form closing and opening, it seems, and that opens up a can of worms with my cursor on the particular recipe entering process.
Can the combo box...ALONE...be requeried?