Partager via


AutoOpenTables Property

Determines whether the tables or views associated with a form set, form, or report's data environment are loaded automatically. Available at design time; read-only at run time.

DataEnvironment.AutoOpenTables [= lExpr]

Parameters

  • lExpr
    Logical data type. The following table lists the values for lExpr.
    lExpr Description
    True (.T.) The form set, form, or report's tables and views are opened automatically. (Default)
    False (.F.) The tables and views are not opened automatically.

Remarks

When AutoOpenTables is set to True (.T.), the data environment automatically calls the AutoOpen method of any CursorAdapter object contained in the data environment. The data environment opens any cursors or cursor adapters in the order that they were added to the data environment.

When AutoOpenTables is set to False (.F.), you can call the OpenTables method of the data environment to programmatically load the data environment.

See Also

BeforeOpenTables Event | OpenTables Method | OpenViews Property | AutoOpen Method | CursorAdapter Class

Applies To: DataEnvironment Object