CHAPTER 8

Handling Run-Time Errors

Part of application development is to anticipate and plan for the errors users may encounter. While your application is running, external events that you can’t prevent or may not anticipate are likely to occur. For example, files may be mistakenly deleted, disk drives can run out of space, and network drives sometimes disconnect unexpectedly. Such eventualities can cause run-time errors in your code, that is, errors that Microsoft Access can detect only when your application is running. To handle these errors, you need to add error-handling code to your procedures.