ACC2: NotInList Event Is Not TriggeredID: Q123867
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
The Access Basic code or macro specified in a combo box's OnNotInList
property setting is not triggered when you enter a value in the combo box
that is not in the combo box's list.
The NotInList event is triggered only if the value entered in the combo box cannot be uniquely associated with any item in the combo box's list, and if the combo box's LimitToList property is set to Yes.
Make sure the combo box's LimitToList property is set to Yes.
Also, check to see if the value you entered in the combo box can be
uniquely associated with an item in the combo box's list. For example,
assume a combo box with the following list:
Beverages
Condiments
Confections
Dairy Products
This behavior no longer occurs in Microsoft Access version 7.0.
RowSourceType: Table/Query
RowSource: Categories
ColumnCount: 2
ColumnWidths: 0;1
BoundColumn : 2
LimitToList: Yes
AutoExpand: No
Sub Field0_NotInList (NewData As String, Response As Integer)
MsgBox "This item is not in the combo box."
End Sub
For more information about the OnNotInList property, search for "OnNotInList" then "OnNotInList Property" using the Microsoft Access Help menu.
Keywords : kbusage FmsCmbo
Version : 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 8, 1999