NOTE: ODBCDirect workspaces are not supported in Microsoft Access 2013. Use ADO if you want to access external data sources without using the Microsoft Access database engine.
|
Name
| Required/optional
| Data type
| Description
|
---|---|---|---|
Name
| Required
| String
| A string expression. See the discussion under Remarks.
|
Options
| Optional
| Variant
| sets various options for the connection, as specified in Remarks. Based on this value, the ODBC driver manager prompts the user for connection information such as data source name (DSN), user name, and password.
|
ReadOnly
| Optional
| Variant
| True if the connection is to be opened for read-only access and False if the connection is to be opened for read/write access (default).
|
Connect
| Optional
| Variant
| An ODBC connection string. See the Connect property for the specific elements and syntax of this string. A prepended "ODBC;" is required.
|
Constant
| Description
|
---|---|
dbDriverNoPrompt
| The ODBC Driver Manager uses the connection string provided in dbname and connect. If you don't provide sufficient information, a run-time error occurs.
|
dbDriverPrompt
| The ODBC Driver Manager displays the ODBC Data Sources dialog box, which displays any relevant information supplied in dbname or connect. The connection string is made up of the DSN that the user selects via the dialog boxes, or, if the user doesn't specify a DSN, the default DSN is used.
|
dbDriverComplete
| Default. If the connect argument includes all the necessary information to complete a connection, the ODBC Driver Manager uses the string in connect. Otherwise it behaves as it does when you specify dbDriverPrompt.
|
dbDriverCompleteRequired
| This option behaves like dbDriverComplete except the ODBC driver disables the prompts for any information not required to complete the connection.
|
dbRunAsync
| Execute the method asynchronously. This constant may be used with any of the other options constants.
|