I suppose you want to shut down the warnings of errors in your VB project. You can change this in the menu Tools-->Options.
A window pops up and there on the general tab you can change the way of errors are handled.
Tools / Options / Editor Tab / Auto Syntax Check off gets rid of MsgBox but luckily it still syntax checks and turns the code red so "Auto Syntax Check" ought to read "Pop a MsgBox and P|ss me off by making me press OK or Enter"
thx, but I meant while the project is running.
I'm using a DBgrid and when the something is filled in wrong, for example a word where this is not allowed, I'm showing a message and as soon as the user clicks OK on my message, VB automatically shows an message of its own.
Do you mean that an error message is shown?
If so, you can trap most error's by error trapping.
On Error GoTo 0
Disables any enabled error handler in the current procedure.
On Error Resume Next
Specifies that when a run-time error occurs, control goes to the statement immediately following the statement where the error occurred where execution continues. Use this form rather than On Error GoTo when accessing objects.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.