Skip to content

Latest commit

 

History

History
31 lines (13 loc) · 843 Bytes

2c5e976c-513f-24b0-f25e-056fc9babaf9.md

File metadata and controls

31 lines (13 loc) · 843 Bytes

OLEDBConnection.CommandText Property (Excel)

Returns or sets the command string for the specified data source. Read/write Variant .

Syntax

expression . CommandText

expression A variable that represents an OLEDBConnection object.

Remarks

You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of Microsoft Excel. If you use both properties, the CommandText property's value takes precedence.

The CommandType property describes the value of the CommandText property.

See also

Concepts

OLEDBConnection Object

Other resources

OLEDBConnection Object Members