L
lixp
Unregistered / Unconfirmed
GUEST, unregistred user!
query.close;
query.sql.clear;
query.sql.add('select bh,xm,jl,cf,rq from jqtable2 where rq>=:rq1 and rq<=:rq2 order by bh,rq');
query.ParamByName('rq1').AsDateTime:=DatetimePicker2.Date;
query.ParamByName('rq2').AsDateTime:=DatetimePicker3.Date;
query.open;
bbprintform.QRLabel10.caption:=query.Fields[0].AsString;
bbprintform.QRLabel14.caption:=query.Fields[1].AsString;
bbprintform.QRLabel15.caption:=query.Fields[2].AsString;
bbprintform.QRLabel16.caption:=query.Fields[3].AsString;
bbprintform.QRLabel17.caption:=query.Fields[4].AsString;
bbprintform.QuickRep1.Preview;
这个程式为什么不能做为条件打印呢?
query.sql.clear;
query.sql.add('select bh,xm,jl,cf,rq from jqtable2 where rq>=:rq1 and rq<=:rq2 order by bh,rq');
query.ParamByName('rq1').AsDateTime:=DatetimePicker2.Date;
query.ParamByName('rq2').AsDateTime:=DatetimePicker3.Date;
query.open;
bbprintform.QRLabel10.caption:=query.Fields[0].AsString;
bbprintform.QRLabel14.caption:=query.Fields[1].AsString;
bbprintform.QRLabel15.caption:=query.Fields[2].AsString;
bbprintform.QRLabel16.caption:=query.Fields[3].AsString;
bbprintform.QRLabel17.caption:=query.Fields[4].AsString;
bbprintform.QuickRep1.Preview;
这个程式为什么不能做为条件打印呢?