The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
The following is an example of a common format for error handling in
Access Basic using MsgBox to display the error text:
This line would return an error message like "Error #15: File | Not found" if Err had trapped a "file not found" error. To receive the extended error message use:
Note the use of Error and not Error(Err). Error(Err) returns a generic error message for the given error number whereas Error returns a specific error message. NOTE: This behavior does not occur in Microsoft Access version 7.0. Additional query words: pipe
Keywords : kbprg PgmErr |
Last Reviewed: March 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |