Solved

How to exit from a not in list error

Posted on 2011-03-24
2
286 Views
Last Modified: 2012-05-11
I have a combo box into which the user types a id number. If the number is not found it displays an error message. (see code). However it will not let the user exit. the combo box drops down and you are forced to pick something from the list and then you can push the exit button. How do remedy this to let the person either enter a new number  or exit the form ?
Private Sub Combo17_NotInList(NewData As String, Response As Integer)
MsgBox "Record Not Found", vbOKOnly, "Oh Dear"
    Response = acDataErrContinue

Open in new window

0
Comment
Question by:Serena2345
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 35207681
see this link

Use NotInList Event to Add a Record to Combo Box

http://support.microsoft.com/?kbid=197526


0
 

Author Closing Comment

by:Serena2345
ID: 35207745
Thanks Cappy
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Insert Into syntax error 10 30
table joins in qry 17 61
Error can't find table ?? 5 25
query sort by digit 5 10
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question