RB's Data workspace provides visual query designer tools that enable design-time modification of DADE SQL DataViews. Use TdaSQLBuilder to modify DADE SQL programmatically at run-time. The SQLBuilder class contains a number of object properties organized much like the pages of the visual query designer. Modification of SQL should be performed from the Report.OnInitializeParameters or Report.BeforeOpenDataPipelines events.