Table of contents
TOC
折叠目录
展开目录

OfficeDataSourceObject.Open 方法 (办公室)OfficeDataSourceObject.Open Method (Office)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

在一个OfficeDataSourceObject对象中打开表。Opens a table in a OfficeDataSourceObject object.

语法Syntax

表达式打开bstrSrcbstrConnectbstrTablefOpenExclusivefNeverPromptexpression. Open( bstrSrc, bstrConnect, bstrTable, fOpenExclusive, fNeverPrompt )

表达式_一个表示OfficeDataSourceObject对象的变量。_expression A variable that represents an OfficeDataSourceObject object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
bstrSrcbstrSrc可选OptionalStringString包含数据源的名称。Contains the name of the data source.
bstrConnectbstrConnect可选OptionalStringString包含数据源的连接字符串。Contains the connection string to the data source.
bstrTablebstrTable可选OptionalStringString指定要打开的表。Specifies which table to open.
fOpenExclusivefOpenExclusive可选OptionalLongLong指示是否应该以独占访问方式打开表。Indicates whether the table should be opened for exclusive access.
fNeverPromptfNeverPrompt可选OptionalLongLong指示如果无法打开表是否通知用户。Indicates whether to notify the user if the table can not be opened.

另请参阅See also

概念Concepts

OfficeDataSourceObject 对象OfficeDataSourceObject Object

其他资源Other resources

OfficeDataSourceObject 对象成员OfficeDataSourceObject Object Members

© 2018 Microsoft