LarryDeLaruelle
Technical User
I am setting up a form with a combo box for user selection. The source of the combo box is a table using the key field (number, long) and description. The key field is not displayed in the combo but is bound to a field on the form.
If the item the user enters is not in the list, the new information must be stored in a separate table before being added to the combo source table. I wrote code for the OnNotInList event of the combo box which opens an input form to record the information for the new item.
All this works fine except that I continue to get the message:
“The text you entered isn’t an item in the list.
Select an item from the list, or enter text that matches one of the listed items.”
How do I disable this message?
I thought that changing the LimitToList property of the combo box to No might resolve it, but when I tried I received the message:
"Microsoft Access can’t set the LimitToList Property to No right now.
The first visible column, which is determined by the ColumnWidths property, isn’t equal to the bound column.
Adjust the ColumnWidths property first and then set the LimitToList property.”
If I understand the Help on this it has to do with where Access will store the info entered into the combo box. However, I’m not sure what to do to resolve the problem.
Any help will be greatly appreciated. Thanks.
Larry De Laruelle
larry1de@yahoo.com
If the item the user enters is not in the list, the new information must be stored in a separate table before being added to the combo source table. I wrote code for the OnNotInList event of the combo box which opens an input form to record the information for the new item.
All this works fine except that I continue to get the message:
“The text you entered isn’t an item in the list.
Select an item from the list, or enter text that matches one of the listed items.”
How do I disable this message?
I thought that changing the LimitToList property of the combo box to No might resolve it, but when I tried I received the message:
"Microsoft Access can’t set the LimitToList Property to No right now.
The first visible column, which is determined by the ColumnWidths property, isn’t equal to the bound column.
Adjust the ColumnWidths property first and then set the LimitToList property.”
If I understand the Help on this it has to do with where Access will store the info entered into the combo box. However, I’m not sure what to do to resolve the problem.
Any help will be greatly appreciated. Thanks.
Larry De Laruelle
larry1de@yahoo.com