ACC: Error() Function Does Not Return Detailed InformationID: Q89591
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you use the Error(Err) function to trap errors in Access Basic,
you will receive a limited error message. To receive an extended error
message, use the Error() or Error$() functions. For example, Error(Err)
or Error$(Err) might return the message "Table not found" whereas Error()
or Error$() would return the message "Table MyTable not found."
The following is an example of a common format for error handling in
Access Basic using MsgBox to display the error text:
MsgBox "Error #" & Err & ": " & Error(Err)
MsgBox "Error #" & Err & ": " & Error
Additional query words: pipe
Keywords : kbprg PgmErr
Version : 1.0 1.1 2.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 10, 1999