Err
The Err keyword contains the most recent error condition in
its properties.
Example:
Err.Raise(20185, "CAPP", "Error when
creating")
(Creates an error message)
Error handling

More:
Clear (Err)
Description (Err)
DisplayLevel (Err)
GetDescriptionOfErrNumber (Err)
HelpContext (Err)
HelpFile (Err)
Number (Err)
Raise (Err)
Source (Err)
Events (Err)