Freigeben über


OfficeDataSourceObject.Open Method

Opens a connection to a mail merge data source.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub Open ( _
    bstrSrc As String, _
    bstrConnect As String, _
    bstrTable As String, _
    fOpenExclusive As Integer, _
    fNeverPrompt As Integer _
)
'Usage
Dim instance As OfficeDataSourceObject
Dim bstrSrc As String
Dim bstrConnect As String
Dim bstrTable As String
Dim fOpenExclusive As Integer
Dim fNeverPrompt As Integer

instance.Open(bstrSrc, bstrConnect, bstrTable, _
    fOpenExclusive, fNeverPrompt)
void Open(
    string bstrSrc,
    string bstrConnect,
    string bstrTable,
    int fOpenExclusive,
    int fNeverPrompt
)

Parameters

  • bstrSrc
    Type: System.String

    Optional String. The name of the data source.

  • bstrConnect
    Type: System.String

    Optional String. The connection string to the data source.

  • bstrTable
    Type: System.String

    Optional String. The name of a table in the data source.

  • fOpenExclusive
    Type: System.Int32

    Optional Integer. Sets whether the data source is opened for exclusive access.

  • fNeverPrompt
    Type: System.Int32

    Optional Integer. Sets whether prompts are displayed.

See Also

Reference

OfficeDataSourceObject Interface

OfficeDataSourceObject Members

Microsoft.Office.Core Namespace