PC Review


Reply
Thread Tools Rate Thread

Combobox Not InList message

 
 
=?Utf-8?B?QW5kcmU=?=
Guest
Posts: n/a
 
      6th Jul 2005
Hello all,

How can I surpress the message you get when record not found in the Limit to
list from within the Combobox...?
This is not an error message but one built in to Access.

I want to tell the user that they need to enter this custoemr into another
area first before they enter it here ...etc.
--
Andre
 
Reply With Quote
 
 
 
 
\Nick via AccessMonster.com\
Guest
Posts: n/a
 
      6th Jul 2005
One way to go about this would be to set Limit to list = False and do your
own check.

For example, after the user enters info into the combo box, use code in
either the LostFocus or the AfterUpdate event to check the information in the
combo box against the set of values allowed; this should be easy if your
rowsource for the combo box is a table.

If the string value in the combo box is not allowed, then use a MsgBox to
give them a customized error message, and you can automatically clear the
combo box (or not).

HTH,

Nick

--
Message posted via http://www.accessmonster.com
 
Reply With Quote
 
Tim Ferguson
Guest
Posts: n/a
 
      6th Jul 2005
"=?Utf-8?B?QW5kcmU=?=" <(E-Mail Removed)> wrote in
news:A64C982E-C527-424A-A0F0-(E-Mail Removed):

> How can I surpress the message you get when record not found in the
> Limit to list from within the Combobox...?


Look up help for the NotInList event.


Tim F

 
Reply With Quote
 
Bas Cost Budde
Guest
Posts: n/a
 
      6th Jul 2005
Use the NotInList event, do whatever suits you, and issue

Response = acDataErrContinue

Andre wrote:
> Hello all,
>
> How can I surpress the message you get when record not found in the Limit to
> list from within the Combobox...?
> This is not an error message but one built in to Access.
>
> I want to tell the user that they need to enter this custoemr into another
> area first before they enter it here ...etc.


--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
For human replies, replace the queue with a tea

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      6th Jul 2005
Check out the OnNotInList event in Help, there should be a code example
there that will show you how to handle the error. Let me know if its not
there and I'll post sample code here.

Andre wrote:
> Hello all,
>
> How can I surpress the message you get when record not found in the Limit to
> list from within the Combobox...?
> This is not an error message but one built in to Access.
>
> I want to tell the user that they need to enter this custoemr into another
> area first before they enter it here ...etc.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
InList()? =?Utf-8?B?RGF2ZSBCaXJsZXk=?= Microsoft Excel Programming 5 7th May 2007 04:41 PM
INLIST()??? =?Utf-8?B?QUogTm9ycmlz?= Microsoft Access Queries 4 16th Jan 2007 08:14 AM
INLIST function Carl Hilton Microsoft Access Queries 1 26th Oct 2004 02:28 PM
Some language have an inlist function (inlist State = 'NY', 'CT',. =?Utf-8?B?VHVwYWNtb2NoZQ==?= Microsoft Access VBA Modules 6 5th Oct 2004 02:34 PM
Some language have an inlist function (inlist State = 'NY', 'CT',. =?Utf-8?B?VHVwYWNtb2NoZQ==?= Microsoft Access VBA Modules 0 5th Oct 2004 05:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 AM.