That second warning message is a VBA run-time warning telling you that your code is failing. That's something you DON'T want to turn off, but as JLovell suggested, you can trap the error and either create a more meaningful error message or not display anything.
I don't recommend the latter because if something is really wrong, you want to know it or your form is unreliable and may bomb out.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|