I have a combo box that has Limit To List property set to "Yes"
The On Not In List event has the following code:
Private Sub COFID_NotInList(NewData As String, Response As Integer)
DoCmd.SetWarnings False
DoCmd.OpenForm "COF", , , , acFormAdd, , NewData
End Sub
The new form is for entering new info into the list. I would like to surpress the message,"The text you entered is not an item in the list". The SetWarnings False doesn't seem to work. How can I surpress that message?
The On Not In List event has the following code:
Private Sub COFID_NotInList(NewData As String, Response As Integer)
DoCmd.SetWarnings False
DoCmd.OpenForm "COF", , , , acFormAdd, , NewData
End Sub
The new form is for entering new info into the list. I would like to surpress the message,"The text you entered is not an item in the list". The SetWarnings False doesn't seem to work. How can I surpress that message?