设QuickRep1.DataSet:=Query1;
再设 QRDBText1.FieldName:='time';
     QRDBText2.FieldName:='class';

解决方案 »

  1.   

    在dataset中写
    select time1=table1.time,table2.time,table2.class from table1,table2 where table1.time=table2.time and table1.pro=table2.pro and table1.class=table2.class and table1.area=table2.area用QRDBText连接dataset,选中相应字段就可以了,没有什么不可以呀。
      

  2.   

    同意johnsonrao(johnson)的再加两句QuickRep1.DataSet:=Query1;
    QRDBText1.dataset:=query1;//
    QRDBText2.dataset:=query1;//
    QRDBText1.FieldName:='time';
    QRDBText2.FieldName:='class';
      

  3.   

    我有个同样的问题都是没有解决,看了很多的帖子,反复去试;也许是我是资质太差吧,怎么试也没有通过,希望各位同行在写代码的时候不忙把你定义的变量也解析一下好吗?还有那些控件,有些根本就是写DEMO,有时候你们装了一些别的什么东西,而我们没有。那么测试就比较难通过