Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Access 2000 Does Not Support the UserForm Object


View products that this article applies to.

This article was previously published under Q198646
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

↑ Back to the top


Summary

In Help in the Visual Basic Editor, you see methods, properties, events, and statements that apply only to the UserForm object. However, even though it is possible to create and to use UserForms in the Visual Basic Editor, it is recommended that you not use them with Access. Instead, use Access forms.

↑ Back to the top


More information

You receive the following error message if you try to use a UserForm method, property, or statement on an object other than the UserForm (for example, a Microsoft Access form) in Visual Basic for Applications code:
Run-time error '2465':
Application-defined or object-defined error
Using the following methods, properties, or statements on objects other than UserForms will cause the error:
   Methods
   -------
   Hide
   PrintForm
   Show
   WhatsThisMode

   Properties
   ----------
   StartUpPosition
   WhatsThisButton
   WhatsTHisHelp

   Statements
   ----------
   Load
   Unload
				
NOTE: The Load statement and the Unload statement of UserForms are not to be confused with the Load event and the Unload event of Microsoft Access forms. The syntax contained in the Help topics for the Load and Unload statements do not work with Access forms.

↑ Back to the top


References

For more information about the UserForm object, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type "UserForm object" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB198646, kbprogramming, kbhowto, kberrmsg

↑ Back to the top

Article Info
Article ID : 198646
Revision : 4
Created on : 10/11/2006
Published on : 10/11/2006
Exists online : False
Views : 430