tljprincess
asked on
Turnoff Access's "Not in List" warning
I have setup the event for NotInList to my own Msgbox, but how do i make Access's warning about the "Text you entered in not an item in the list" to go away. I tried to put in warnings = false before my msgbox and then true after ... but that did nothing.
post your code where you disabled warnings pls.
John
John
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Change following code a little, and paste it under your Combo Event : [On Not in List]
Dim ctl As Control
Set ctl = Me!Combo5 'Change the name here
Response = acDataErrContinue
ctl.Undo
it will do it for you
Regards
Ben
Dim ctl As Control
Set ctl = Me!Combo5 'Change the name here
Response = acDataErrContinue
ctl.Undo
it will do it for you
Regards
Ben
Hi there,
The correct command to control the setwarnings is:
docmd.setwarnings False
....Your code that you want to ignore warnings from.
docmd.setwarnings true
and NOT docmd.setwarnings=false or =true
Hope this helps.
Dom
The correct command to control the setwarnings is:
docmd.setwarnings False
....Your code that you want to ignore warnings from.
docmd.setwarnings true
and NOT docmd.setwarnings=false or =true
Hope this helps.
Dom
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- --
This question has been abandoned and needs to be finalized.
You can accept an answer, split the points, or get a refund (information at http:/help.jsp#hs5)
If you need a moderator to help you, post a question at Community Support (http:/Community_Support/)
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ornicar
Cleanup Volunteer
-------------------------- ---------- ---------- ---------- ---------- ---------- ---------- -------
This question has been abandoned and needs to be finalized.
You can accept an answer, split the points, or get a refund (information at http:/help.jsp#hs5)
If you need a moderator to help you, post a question at Community Support (http:/Community_Support/)
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ornicar
Cleanup Volunteer
--------------------------
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: TextReport {http:#9848714}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
stevbe
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: TextReport {http:#9848714}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
stevbe
EE Cleanup Volunteer
I think you should split them as my answer also works to halt the warnings.
Dom
Dom
set warnings has no effect on "not in list" messages.
try to set (in the comboBox Properties)
the 'Limit To List' To 'No'.
Udir