ACC97: Microsoft Access 97 Does Not Support UserForm Object

Last reviewed: November 12, 1997
Article ID: Q171319
The information in this article applies to:
  • Microsoft Access 97

SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

Microsoft Access 97 does not support the UserForm object or the UserForms collection. Although some methods, properties, events, and statements that apply only to the UserForm object appear in Microsoft Access Help, you cannot use them in Microsoft Access 97. This is documented in the Acread80.wri file that is installed with Microsoft Access 97 or Microsoft Office 97.

MORE INFORMATION

In Microsoft Access 97, you receive the following error message if you try to use a method or property of the UserForm object in Visual Basic for Applications code:

   Run-time error '2465':

   Application-defined or object-defined error

Using the following methods and properties will cause this error because these methods and properties apply only to the UserForm object:

   Methods
   -------

   Hide
   PrintForm
   Show
   WhatThisMode


   Properties
   ----------

   StartUpPosition
   WhatsThisButton
   WhatsTHisHelp

Although the Load event and the Unload event apply to Microsoft Access forms, the Load statement and the Unload statement apply only to the UserForm object. The syntax contained in the Help topics for these statements does not work in Microsoft Access 97.

REFERENCES

For more information about the UserForm object, search the Help Index for "UserForm object."

Keywords          : kberrmsg kbprg
Version           : 97
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbinfo


================================================================================


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.

Last reviewed: November 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.