CommandText Element (Microsoft Excel)

Contains the ODBC or OLE DB command string used to query data from a data source.

Contained In

PivotTable, QuerySource

Remarks

The same command string can be split among several consecutive CommandText elements.

Examples

See the examples in the PivotTable and QueryTable element topics.