Not in list

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone can advise how can I get rid of the "not in list" error message Access
gives when we try to put in text that is not part of a combo box?

Thanks.
 
Gaetan said:
Anyone can advise how can I get rid of the "not in list" error message Access
gives when we try to put in text that is not part of a combo box?

Thanks.

May be this one solution...?

Private Sub Form_Error(DataErr As Integer, Response As Integer)
Select Case DataErr








' --------------------------------------------------------------------------
---------------
' This to prevent "<NOT IN LIST> on Combo(s) if it's not allowed








' --------------------------------------------------------------------------
---------------
Case 2237 ' NOT IN LIST
Response = acDataErrContinue
Screen.ActiveControl.Undo
Case Else
Response = acDataErrDisplay
End Select
End Sub
 
Anyone can advise how can I get rid of the "not in list" error message Access
gives when we try to put in text that is not part of a combo box?

Thanks.

What do you want to do with the text that you tried to place in the
box (besides get rid of the message)?
Save it? Delete it?
 
I'd like to save it so that I can put it in a text box on a form that will
open.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top