Solved

How to exit from a not in list error

Posted on 2011-03-24
2
285 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

809 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