User Error Numbers

  • Thread starter Thread starter Error Guy
  • Start date Start date
E

Error Guy

I remember there are error numbers reserved for the user,
and that you once could find that information in Help, but
I couldn't find it in Access 2000 Help (all I have access
to just now).

What are the error numbers to use for application errors
and how do you associate a description with them?

TIA,

Error Guy
 
Sorry. Found the answer... just wasn't easy to find. I got
it by typing Err.Raise in a VBA module and pressing F1.

You add your error code to the "vbObjectError" constant,
and codes 513 - 65535 are reserved for user error. You
specify a description on the Raise method call. If you
don't, and the number maps to an existing error, that's
the description it will use; if not, it will describe it
as "user-defined error".

Blasted Help, anyway, that you can't use from just
anywhere in the product.

Error Guy
 
Back
Top