The On Not in List event in Microsoft Access is triggered when a user types a value into a combo box that doesn’t currently exist in its list of available options if the Limit To List property (on the Data tab of the Property Sheet) is set to Yes. This event allows you to manage how the application responds, most commonly by offering the user a way to add the new value directly to the combo box’s data source which is most often a table.
For instance, imagine you have a combo box that lists available product categories from a Categories table. When a user enters a new category say, “Eco-Friendly” that isn’t already in the list, the Not In List event can prompt the user to confirm whether they’d like to add it. If they agree, your VBA code can insert the new category into the Categories table and then requery the combo box so that the new option appears immediately.
This approach helps maintain consistent data while giving users flexibility to expand predefined lists dynamically, improving workflow and usability.
Continue reading
