Using the Err Object
The Err object contains information about the most recent error that occurred. As with all Access objects, it has its own built-in properties and methods. Table 16.1 lists the properties of the Err object.
Property | Description |
---|---|
Description | Description of the error that occurred |
HelpContext | Context ID for the Help file |
HelpFile | Path and filename of the Help file |
LastDLLError | Last error that occurred in a 32-bit dynamic link library (DLL) |
Number | Number of the error that was set |
Source | System in which the error occurred (which is extremely useful when you are using object linking and embedding [OLE] automation to control another application, such as Excel) |