Enabling Error messages

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Hi group, I am editing an Access 2000 database that I did not create. The
programmer who created the database has turned off access error messages.
This is making programming very difficult as every time I make a code error,
I have to put in msgboxes throughout the code to find where the error is
coving from.

How do I turn this back on?
 
Every procedure in your application should have an error handler. The
other person may have put in the line: On Error GoTo 0

At the beginning of every procedure you should have a line: On Error
GoTo ThisProcedureErrorHandler. Any book that deals with writing VBA
that's worth a darn will have a sample error handler.

However, many coding errors will be caught by the compiler.

HTH
 
Back
Top