473,378 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

NotOnList event on Combo Box - how to stop pop-up

Hi,

I have a combo box in a form. It has limit to list set to "yes", and
I have declared a NotOnList event procedure to take care of adding a
value not on the list.

Now, my problem is that, even though when I enter a value not on the
list it appropriately opens the form to add a new value, the pop-up
that says "The text you entered isn't an item in the list" still
comes up. This seems pretty unreasonable since I already wrote an
event that takes care of that instance.

So, how can I stop this pop-up from appearing? I tried
doCmd.SetWarnings false, but no deal.

Can anyone help?

Thanks,

Gustavo.
Nov 13 '05 #1
2 1949
Gustavo) wrote:
Hi,

I have a combo box in a form. It has limit to list set to "yes", and
I have declared a NotOnList event procedure to take care of adding a
value not on the list.

Now, my problem is that, even though when I enter a value not on the
list it appropriately opens the form to add a new value, the pop-up
that says "The text you entered isn't an item in the list" still
comes up. This seems pretty unreasonable since I already wrote an
event that takes care of that instance.

So, how can I stop this pop-up from appearing? I tried
doCmd.SetWarnings false, but no deal.

Can anyone help?

Thanks,

Gustavo.


Something like:
Response = acDataErrContinue ' < sp?
In the event procedure.

--
Pretentious? Moi?
Nov 13 '05 #2
You have to set the Repsonse parameter of the NotInList procedure. Look in
help for acDataErrAdded.

On 13 Oct 2004 10:42:10 -0700, (Gustavo) <gu******@hotmail.com> wrote:
Hi,

I have a combo box in a form. It has limit to list set to "yes", and
I have declared a NotOnList event procedure to take care of adding a
value not on the list.

Now, my problem is that, even though when I enter a value not on the
list it appropriately opens the form to add a new value, the pop-up
that says "The text you entered isn't an item in the list" still
comes up. This seems pretty unreasonable since I already wrote an
event that takes care of that instance.

So, how can I stop this pop-up from appearing? I tried
doCmd.SetWarnings false, but no deal.

Can anyone help?

Thanks,

Gustavo.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Megan | last post by:
I'm using an unbound combo box on a form as a record selector. I'm using the combo box to choose certain types of music, i.e. Alternative, Pop, Rock, etc…and then run a report based on the...
2
by: guy | last post by:
I have a base winform Base and a form that inherits from it Child in the base form there is an event handler for a combo box click Protected Overrideable Sub...
1
by: Robert | last post by:
Every thing worked fine until all of a sudden, I get the following error whenever I try to do anything on one of my forms that calls an Event Procedure. I get the error as soon as the form opens...
4
by: senfo | last post by:
Hello All, For some reason, the MouseDoubleClick event for my ComboBox does not appear to be working. I am not subscribed to any other events for this control. I pulled out Spy++ and noticed...
13
by: Keith Wilby | last post by:
I've never used this event before and I'm struggling. I have this code in it: If MsgBox("You entered " & Me.cboManagerName _ & " - is this the manager's network logon ID?", vbYesNo, "Confrim...
1
by: dana1 | last post by:
I have a form with several combo boxes in the header used to determine the records that will be displayed on the form. When I tab or enter from the last combo box in the header, I want the focus to...
3
rhitam30111985
by: rhitam30111985 | last post by:
Hi all.. i am trying to create a combo with the pop down list being modfied in real time as i type each character : import gtk window=gtk.Window(gtk.WINDOW_TOPLEVEL)...
1
by: aaronkm | last post by:
Hello thescripts!, I hope this is easy for someone to answer, I just can't seem to figure it out. On my main form, within a Tab Control I have a ComboBox named: GapArea that is filtered by...
2
by: someshbakliwal | last post by:
Hi, I have created some autopopulating combo boxes on my HTML page (script- Javascript). so these combo boxes are autopopulated with choices made in previous combo boxes. The problem I am facing is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.