Ответить на сообщение
Вернуться к теме
Вы отвечаете на сообщение:
ник: amba-l а так
Private Sub value_DblClick(Cancel As Integer) DoCmd.OpenForm "frm1", , , , acFormAdd End Sub
expression.OpenForm(FormName, View, FilterName, WhereCondition, DataMode, WindowMode, OpenArgs) expression Required. An expression that returns one of the objects in the Applies To list. FormName Required Variant. A string expression that's the valid name of a form in the current database. If you execute Visual Basic code containing the OpenForm method in a library database, Microsoft Access looks for the form with this name first in the library database, then in the current database. View Optional AcFormView. AcFormView can be one of these AcFormView constants. acDesign acFormDS acFormPivotChart acFormPivotTable acNormal default. Opens the form in Form view. acPreview If you leave this argument blank, the default constant (acNormal) is assumed. FilterName Optional Variant. A string expression that's the valid name of a query in the current database. WhereCondition Optional Variant. A string expression that's a valid SQL WHERE clause without the word WHERE. DataMode Optional AcFormOpenDataMode. AcFormOpenDataMode can be one of these AcFormOpenDataMode constants. acFormAdd acFormEdit acFormPropertySettings default acFormReadOnly If you leave this argument blank (the default constant, acFormPropertySettings, is assumed), Microsoft Access opens the form in the data mode set by the form's AllowEdits, AllowDeletions, AllowAdditions, and DataEntry properties. WindowMode Optional AcWindowMode. AcWindowMode can be one of these AcWindowMode constants. acDialog acHidden acIcon acWindowNormal default If you leave this argument blank, the default constant (acWindowNormal) is assumed. OpenArgs Optional 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. For example, suppose that the form you open is a continuous-form list of clients. If you want the focus to move to a specific client record when the form opens, you can specify the client name with the openargs argument, and then use the FindRecord method to move the focus to the record for the client with the specified name. This argument is available only in Visual Basic
Ваше имя:
Пароль:
Сообщение:
Прикрепить:
Для вставки смайлов в текст щелкните по значку.