Microsoft KB Archive/140289

{|
 * width="100%"|

PRA: Minimize/Maximize Action Fails in Text Box OnClick Event
'Article ID: Q140289

Creation Date: 28-NOV-1995

Revision Date: 20-SEP-1996' The information in this article applies to:


 * Microsoft Access version 2.0

SYMPTOMS

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

If you run a macro or event procedure with the Maximize or Minimize action from the OnClick property of a text box on a form, the form will not maximize or minimize. The action silently fails.

RESOLUTION

To work around this problem, place the macro or event procedure on another property, such as the OnDblClick property, or place the macro or event procedure on the OnClick property of a command button.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access version 2.0. This problem no longer occurs in Microsoft Access for Windows 95 version 7.0.

MORE INFORMATION

Steps to Reproduce Behavior

 Open the sample database NWIND.MDB. Open the Categories form in Design view. If it is not open, open the property sheet for the Category ID text box.  Create the following macro named Test: Macro Name      Action ---     Test             Maximize  Set the Category ID text box's OnClick property to the Test macro. Switch the form to Form view. Click the Category ID text box. Note that the form does not maximize. Switch the form back to Design view. Move the Test macro to the OnDblClick property of the Category ID text box.</li> Switch the form to Form view. Double-click the Category ID field. Note that the form maximizes.</li></ol>

REFERENCES

For more information about creating macros, search for "macros: builders," and then "Macro Builder" using the Microsoft Access Help menu.
 * }

-

"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." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

Additional reference words: 2.00

KBCategory: kbusage

KBSubcategory: FmsProp