Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What are the arguments in docmd.openform arguments?


Asked by Crosby Harris on Nov 29, 2021 FAQ



A string expression that's the valid name of a query in the current database. This query van be used to filter the form. A string expression that's a valid SQL WHERE clause without the word WHERE. A AcFormOpenDataMode constant that specifies the data entry mode for the form. This applies only to forms opened in Form view or Datasheet view.
Similarly,
DoCmd.OpenForm and its options. The default value is acWindowNormal. OpenArgs Variant A string expression. This expression is used to set the form's OpenArgs property. This setting can then be used by code in a form module , such as the Open event procedure . The OpenArgs property can also be referred to in macros and expressions .
In fact, To use the OpenArgs property, open a form by using the OpenForm method of the DoCmd object and set the OpenArgs argument to the desired string expression. The OpenArgs property setting can then be used in code for the form, such as in an Open event procedure.
Furthermore,
If you need the name for some other reason, you should say so, because there is more than one way to pass the information. For example, if the name is used to filter records, the Where argument of the OpenForm method is probably best. – Fionnuala Aug 13 '10 at 8:08 2 This sounds like you've built a system with fake security.
In respect to this,
The form opens in Design view. The form opens in Datasheet view. The form opens in PivotChart view. The form opens in PivotTable view. The form opens in Layout view. (Default) The form opens in Form view.