L
libaoliang
Unregistered / Unconfirmed
GUEST, unregistred user!
请问以下代码在delphi6.0+BDE+paradox下能够编译通过,而在
delphi6.0+ADO+access下则编译无法通过,这是什么原因?
a1:='select cpmc as 产品名称,sum(zpzl) as 装坯数,sum(cpl) as 成品量 from cpk where (rq between :rq1 and :rq2) group by cpmc';
query1.close;
query1.sql.clear;
query1.sql.add(a1);
query1.parambyname('rq1').asdate:=datetimepicker1.date;
query1.parambyname('rq2').asdate:=datetimepicker2.date;
query1.open;
a1:='select cpmc as 产品名称,sum(zpzl) as 装坯数,sum(cpl) as 成品量 from cpk where (rq between :rq1 and :rq2) group by cpmc';
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add(a1);
adoquery1.parambyname('rq1').asdate:=datetimepicker1.date;
adoquery1.parambyname('rq2').asdate:=datetimepicker2.date;
adoquery1.open;
delphi6.0+ADO+access下则编译无法通过,这是什么原因?
a1:='select cpmc as 产品名称,sum(zpzl) as 装坯数,sum(cpl) as 成品量 from cpk where (rq between :rq1 and :rq2) group by cpmc';
query1.close;
query1.sql.clear;
query1.sql.add(a1);
query1.parambyname('rq1').asdate:=datetimepicker1.date;
query1.parambyname('rq2').asdate:=datetimepicker2.date;
query1.open;
a1:='select cpmc as 产品名称,sum(zpzl) as 装坯数,sum(cpl) as 成品量 from cpk where (rq between :rq1 and :rq2) group by cpmc';
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add(a1);
adoquery1.parambyname('rq1').asdate:=datetimepicker1.date;
adoquery1.parambyname('rq2').asdate:=datetimepicker2.date;
adoquery1.open;