ACC95: "OpenForm Method" Topic Incorrectly Documents Data Mode

Last reviewed: May 14, 1997
Article ID: Q138674
The information in this article applies to:
  • Microsoft Access version 7.0

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

The "OpenForm Method" topic in Microsoft Access for Windows 95 version 7.0 online Help incorrectly documents the following for the Data Mode argument setting:

   If you leave this argument blank, the default (acEdit) is assumed.

This line should read as follows:

   The Data Mode argument setting overrides the settings of the form's
   AllowEdits, AllowDeletions, AllowAdditions, and DataEntry properties.
   For example, if a form's AllowEdits property is set to No, you can still
   use the OpenForm action to open the form in Edit mode. If you omit this
   argument, the property settings defined by the form will be used.

MORE INFORMATION

Steps to Reproduce Behavior

The following example demonstrates that the default property settings of the form will be used if the datamode argument setting is omitted:

  1. Open the sample database Northwind.mdb.

  2. Open the Customers form in Design view and set the AllowAdditions property to No. Save, and then close the form.

  3. Create a new macro with the following action:

          OpenForm
          -----------------------
    
             Form Name: Customers
             View: Form
             Filter Name:
             Where Condition:
             Data Mode: Edit
             Window Mode: Normal
    
           NOTE: The Data Mode argument is Edit by default.
    
    

  4. Save the macro with a unique name, and then run the macro by clicking Start on the Run menu. Note that the Customers form opens, but allows you to add new records because the Data Mode argument overrides the AllowAdditions property setting.

  5. Close the Customers form, delete Edit from the Data Mode argument of the OpenForm action and rerun the macro by clicking Start on the Run menu. Note that the Customer form opens but does not allow you to add new records.

REFERENCES

For more information about OpenForm, search for "OpenForm," and then "OpenForm Method" using the Microsoft Access for Windows 95 Help Index.


Keywords : kbusage McrArg
Version : 7.0
Platform : WINDOWS
Hardware : X86
Issue type : kbdocerr
Resolution Type : Info_Provided


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: May 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.