INF: "There Is No Current Code Context Object" Error MessageArticle ID: Q147153Creation Date: 20-FEB-1996 Revision Date: 20-SEP-1996
The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
The CodeContextObject property can only be used to refer to the current
Form or Report object. Functions using the CodeContextObject property can
only be called from the Form or Report object. If the function is called
from the Debug window, you may receive the following error message:
There is no current code context object.STATUS This behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
=ErrorMessage()
?Errormessage() Note that you receive the following error message:
There is no current context object.
REFERENCES For more information about CodeContextObject property, search for "CodeContextObject" using the Microsoft Access for Windows 95 Help Index. |
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.