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