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

Chapter 7. HANDLING YOUR ERRORS IN ACCES... > CREATING USER-DEFINED ERRORS

CREATING USER-DEFINED ERRORS

By using the CVErr() and IsError() functions and the Application.AccessError method, you can create your own functions that can return an error value if an error situation occurs in the function. Here's a short description of each function and method that can be used:

  • The CVErr() function converts a value to an Error data type, assigning it to a Variant variable.

  • The IsError() function checks to see whether a Variant is an Error data type.

  • The Application.AccessError method provides an error description without the error itself.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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