Microsoft KB Archive/171319

= ACC97: Microsoft Access 97 Does Not Support UserForm Object =

Article ID: 171319

Article Last Modified on 1/20/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q171319



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



SUMMARY
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.

