OfficeDataSourceObject.Open method (Office)
Opens a table in an OfficeDataSourceObject object.
Syntax
expression.Open (bstrSrc, bstrConnect, bstrTable, fOpenExclusive, fNeverPrompt)
expression A variable that represents an OfficeDataSourceObject object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
bstrSrc | Optional | String | Contains the name of the data source. |
bstrConnect | Optional | String | Contains the connection string to the data source. |
bstrTable | Optional | String | Specifies which table to open. |
fOpenExclusive | Optional | Long | Indicates whether the table should be opened for exclusive access. |
fNeverPrompt | Optional | Long | Indicates whether to notify the user if the table cannot be opened. |
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for