Returns one of the xlQueryType constants listed in the following table. These constants indicate the type of query used by Microsoft Excel to populate the query table or PivotTable cache. Read-only xlQueryType.
Constant | Description |
---|---|
xlADORecordset | Based on an ADO recordset query |
xlDAORecordset | Based on a DAO recordset query, for query tables only |
xlODBCQuery | Based on an ODBC data source |
xlOLEDBQuery | Based on an OLE DB query, including OLAP data sources |
xlTextImport | Based on a text file, for query tables only |
xlWebQuery | Based on a Web page, for query tables only |
Remarks
You specify the data source in the prefix for the Connection property’s value.