The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills.
You may receive this error message when you try to get the description of an error trapped in a form's Error event as follows:
CAUSE
The error message being trapped is Microsoft Access specific. When you pass
an error number to the Error() function that is not a Visual Basic for
Applications specific error, Visual Basic for Applications does not call
back into the hosting application to ask it for the error message.
RESOLUTIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspYou can use the AccessError method to return the descriptive string associated with an Access error as follows: NOTE: The AccessError method will return a string associated only with Access errors and Visual Basic errors. It will not return descriptive strings associated with data access errors.MORE INFORMATIONCAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
Steps to Reproduce Behavior
Data integrity rules have been changed. Existing data may not be valid for the new rules.
NOTE: The second message box is empty because the error generated is a data access error. The AccessError method does not return data access error messages. REFERENCESFor more information about the AccessError method, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type "AccessError" in the Office Assistant or the Answer Wizard, and then click Search to view the topic. Additional query words: pra prb
Keywords : kberrmsg kbdta FmsOthr |
Last Reviewed: July 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |