Add Method (SchemaRowsources Collection)

See Also                  Applies To

Creates a new schema row source. Returns a SchemaRowSource object.

Syntax

expression.Add(Name, RowsourceType, CommandText)

expression   An expression that returns a SchemaRowsources object.

Name   Required String. Specifies the name of the new row source.

RowsourceType   Required dscRowsourceTypeEnum. Specifies the type of the new row source.

CommandText   Optional Variant. The schema row source command text. For more information, see the Help topic for the CommandText property.

Remarks

In design mode in Microsoft Access, the SchemaRowsources collection is automatically filled with the available schema row sources.