• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Handling Runtime Errors

No matter how thoroughly you test and debug your code, runtime errors appear eventually. Runtime errors are errors that occur when Access executes your code. Use the On Error GoTo instruction to control what happens in your application when a runtime error occurs. On Error isn't a very sophisticated instruction, but it's your first choice for error processing in Access modules. You can branch to a label or ignore the error. The general syntax of On Error… follows:

On Error GoTo LabelName
On Error Resume Next
On Error GoTo 0


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint