CREATING A CENTRALIZED ERROR-HANDLING ROUTINE

In addition to logging errors, it's useful to come up with a standard way to handle errors. A centralized error handler is an ever-changing animal. As you come across new errors, you'll want to handle them consistently.

In the meantime, you'll also want to handle the majority of errors without having to create custom error handlers for each one. A centralized error handler is just the ticket. With a centralized error handler, you can have Access handle various errors the same way in all your routines, just by programming for them in one location. This section shows you how to get started.

Note

Programming your routines is just the start of what it takes to come up with a good, robust, centralized ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.