Database Property

See AlsovbproDatabaseSee                 ExamplevbproDatabaseEx>Low

Applies To

Data control2E1FEX3.


A reference to a data control's underlying Database object.  Not available at design time; read-only at run time.


[form.] datacontrol.Database.method [argumentlist ]

[form.] [ = setting ]


To provide access to data, a data control finds the specified database and then using the Exclusive, ReadOnly, and Connect properties, opens it as a Database object.  The Database property is a direct reference to that object.

Database objects have properties and methods you can use to manage your data.  You can use any methods of a Database object with the Database property of a data control, such as Close and Execute.  You can also examine the internal structure of the Database by using its TableDefs collection, and in turn, the Fields and Indexes collections of individual TableDef objects.

Data Type

Database objectWNISZP