Mega Code Archive

 
Categories / Delphi / ADO Database
 

Using additional data sets in expressions

Question: The expressions only pick up field values from datasets referenced in my reports. How can I use additional datasets in expressions? Answer: In the QuickRep.BeforePrint event you can add additional datasets to the QuickRep.AllDataSets list property: MyReport.AllDataSets.Add(SomeOtherTable). You can now use fields from this (these) tables in your expressions.