ACC95: "OpenForm Method" Topic Incorrectly Documents Data Mode

ID: Q138674


The information in this article applies to:


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 
Issue type        : 

Last Reviewed: April 30, 1999