Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. Handling Errors and Exceptions > Which Errors Can Be Detected?

25.2. Which Errors Can Be Detected?

There are several hundred trappable errors that can occur in VBA applications. Only a minor portion of these hundreds of errors are likely to occur in your applications. The question is, then, which of the remaining fifty or one hundred relevant errors should you trap in your applications?

Most developers begin simply and write an error handler that catches one or two of the most obvious errors. In the case of the navigation buttons on an Access or Visual Basic form, you should trap the error that occurs when the user tries to move off either end of the recordset. Such an error is readily anticipated and is the result of normal navigation through a recordset.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint