Microsoft KB Archive/138674

= ACC95: "OpenForm Method" Topic Incorrectly Documents Data Mode =

Article ID: 138674

Article Last Modified on 6/25/2002

-

APPLIES TO


 * Microsoft Access 95 Standard Edition

-



This article was previously published under Q138674



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



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



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:

 Open the sample database Northwind.mdb. Open the Customers form in Design view and set the AllowAdditions property to No. Save, and then close the form.  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.  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. 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.</li></ol>

<div class="references_section">