ODBCConnection.SourceDataFile property (Excel)

Returns or sets a String indicating the source data file for an ODBC connection. Read/write.

Syntax

expression.SourceDataFile

expression A variable that represents an ODBCConnection object.

Remarks

For file-based data sources (for example, Access) the SourceDataFile property contains a fully qualified path to the source data file. It's null for server-based data sources (for example, SQL Server). The SourceDataFile property is set to null if the Connection property is changed programmatically.

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.