A family of Microsoft relational database management systems designed for ease of use.
Thanks Tom, I'll look into that.
John
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Community,
I know these are easy for experienced Access developers, but I am not one. I have a combo box (Part Number) on a form and I have a form to add a new part number.
The Add Part Form is:
I am just trying to update the Combo Box with the added record. I image it is a Requery or Refresh of that combo box in the Save and Close macro, but can't get the syntax correct. The form is frmPartTracker and the Control Name is ComboPartNum.
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Thanks Tom, I'll look into that.
John
Thanks, I'll look into that.
Actually, better than that is the use of List Items Edit Form in combination with Allow Value List Edits. This is an almost zero code replacement of the NotInList event.
Interesting, I just worked on this myself last Friday.
My first instinct was: Forms!frmPartTracker!ComboPartNum.Requery
But what that does is get a fresh value of PartNum, and thus possibly selecting a different item in the dropdown list.
To requery the list itself, I used:
Forms!frmPartTracker!ComboPartNum.RowSource = Forms!frmPartTracker!ComboPartNum.RowSource
The new item then showed up.
I suggest you do some research on the NotInList event of comboboxes. This is the better way to enter new data.