ConnectionFile Property

Microsoft Office Web Components Object Model

ConnectionFile Property

       

Returns or sets a String that specifies the Office Database Connection (.odc) or Microsoft Data Link (.udl) file that is used to connect the data access page to a data source. Read/write.

expression.ConnectionFile

expression   Required. An expression that returns a DataSourceControl object.

Example

This example connects the data access page to a Office Database Connection file named "SQL Northwind.odc".

MSODSC.ConnectionFile = "SQL Northwind.odc"