OfficeDataSourceObject.Open(String, String, String, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Opens a connection to a mail merge data source.
public void Open (string bstrSrc = "", string bstrConnect = "", string bstrTable = "", int fOpenExclusive = 0, int fNeverPrompt = 1);
abstract member Open : string * string * string * int * int -> unit
Public Sub Open (Optional bstrSrc As String = "", Optional bstrConnect As String = "", Optional bstrTable As String = "", Optional fOpenExclusive As Integer = 0, Optional fNeverPrompt As Integer = 1)
Parameters
- bstrSrc
- String
Optional String. The name of the data source.
- bstrConnect
- String
Optional String. The connection string to the data source.
- bstrTable
- String
Optional String. The name of a table in the data source.
- fOpenExclusive
- Int32
Optional Integer. Sets whether the data source is opened for exclusive access.
- fNeverPrompt
- Int32
Optional Integer. Sets whether prompts are displayed.