Supress Message Box

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm trying to supress a message box on my combobox when a user enters
text not in the combobox. I tried SetWarnings False that did
nothing......I can't figure it out.
Thanks
DS
 
DS said:
I'm trying to supress a message box on my combobox when a user enters
text not in the combobox. I tried SetWarnings False that did
nothing......I can't figure it out.
Thanks
DS

This does the trick! It'll stop Microsofts box and open your own form,
if not get rid of DoCmd. and Change MsgBox to whatever you want.

Response = acDataErrContinue
DoCmd.OpenForm "NotOnList"
'MsgBox "The state you chose, " & NewData & ", is invalid."

DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top