D
Dennis _M
I'm trying to add values into a combo box that aren't already there, wanting
the combo box updated. The combo box is fed from a separate table in the
database.
The combo box is DesignEngineer, the table is Design Engineers.
I have made the following procedure in the NotInList property of the combo
box:
Private Sub DesignEngineer_NotInList(NewData As String, Response As Integer)
On Error GoTo Err_DesignEngineer_NotInList
DoCmd.OpenTable "Design Engineers", acViewDatasheet, acAdd
Response = acDataErrAdded
Exit_DesignEngineer_NotInList:
Exit Sub
Err_DesignEngineer_NotInList:
MsgBox Err.Description
Resume Exit_DesignEngineer_NotInList
End Sub
LimitToList is set to Yes.
When I type a new value into the combo box and hit enter. a new table (in
DataSheet view) pops up and I get the message:
"The text you entered isn't an item on the list. Select an item from the
list, or enter text that matches one of the listed items."
Any ideas?
the combo box updated. The combo box is fed from a separate table in the
database.
The combo box is DesignEngineer, the table is Design Engineers.
I have made the following procedure in the NotInList property of the combo
box:
Private Sub DesignEngineer_NotInList(NewData As String, Response As Integer)
On Error GoTo Err_DesignEngineer_NotInList
DoCmd.OpenTable "Design Engineers", acViewDatasheet, acAdd
Response = acDataErrAdded
Exit_DesignEngineer_NotInList:
Exit Sub
Err_DesignEngineer_NotInList:
MsgBox Err.Description
Resume Exit_DesignEngineer_NotInList
End Sub
LimitToList is set to Yes.
When I type a new value into the combo box and hit enter. a new table (in
DataSheet view) pops up and I get the message:
"The text you entered isn't an item on the list. Select an item from the
list, or enter text that matches one of the listed items."
Any ideas?