Error Message

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a drop-down list which contains customer names. If the
user types in a name that isn't in the list they receive the error message
"The text you entered isn't an item in the list" Mayhem then ensues. To then
add a customer the user has to push the button - Cmd_AddCustomer - however if
the user doesn't push the escape button or pick an actual name that is in the
list the user cannot push the Cmd_AddCustomer button without receiving the
"text you entered ..." error message. Is there a way to clear out the text
box if a name is typed in that doesn't match any entries so the error message
doesn't pop up. The well-being of the computers and keyboards is at stake.
Thanks.
 
Hi Scott
On the OnNotInList Property of the combo, you can write the code that will
remove the prev entry

Me.[ComboName]=""
 
Back
Top