Re: Elegant way of handling combo box "Not in list" event?
- From: CDMAPoster@xxxxxxxxxxxxxxxx
- Date: 14 Sep 2006 20:59:39 -0700
Rico wrote:
Hello,
Is there any way to get rid of or replacing the error message that pops up
when you enter a combo box item that isn't in the list? I've tried using
the Not In List event, but there is still an Access error that is raised.
Any ideas?
Thanks!
Rick
Setting Response to acDataErrContinue or acDataErrAdded avoids the
default message. See NotInList Event in the help file.
For example,
Private Sub cbxJobNumber_NotInList(NewData As String, Response As
Integer)
MsgBox ("The Job Number you entered is not in the list. Please try
again.")
Response = acDataErrContinue
cbxJobNumber.Undo
End Sub
James A. Fortune
CDMAPoster@xxxxxxxxxxxxxxxx
Pittsburgh has more bridges than any other city in the world. --
http://www.thepittsburghchannel.com/news/9841603/detail.html
.
- References:
- Prev by Date: Modify curent database or create new databases
- Next by Date: Re: Database Won't Compact
- Previous by thread: Elegant way of handling combo box "Not in list" event?
- Next by thread: Modify curent database or create new databases
- Index(es):
Relevant Pages
|