Xbasic

A5_ExcelConnString Function

Syntax

Connection_String as C = A5_ExcelConnString(C ExcelSpreadsheet )

Arguments

Connection_String

A connection string for the specified Microsoft Excel file.

ExcelSpreadsheet

The path and name of a Microsoft Excel spreadsheet.

Description

The A5_ExcelConnString() function returns an ADO connection string for a named Excel file.

Example

? a5_excelconnstring("c:\customer.xls")
= "Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};DBQ=c:\customer.xls"

Limitations

Desktop applications only.

See Also