TMedQuery.DataSource TMedQuery

property DataSource: TDataSource ;

Description

Set DataSource if you wish your query parameters to be automatically filled with fields values from another dataset. Values for parameters that have the same name as fields in DataSource are automatically assigned from current DataSource record. Other parameters must be set programatically.

Please see documentation for TQuery.DataSource for more information.