tt1:=datetostr(datetimepicker1.Date);
tt2:=datetostr(datetimepicker2.Date);
sql:='select * from 水电信息表 where 录入日期 between'''+tt1+''' and '''+tt2+''' ';
with ADOQuery1 do
begin
close;
SQL.Clear;
SQL.Add(sql);//[Error] report_cur.pas(157): Incompatible types: 'String' and 'TStrings'
open;
高手帮忙解决一下~
tt2:=datetostr(datetimepicker2.Date);
sql:='select * from 水电信息表 where 录入日期 between'''+tt1+''' and '''+tt2+''' ';
with ADOQuery1 do
begin
close;
SQL.Clear;
SQL.Add(sql);//[Error] report_cur.pas(157): Incompatible types: 'String' and 'TStrings'
open;
高手帮忙解决一下~
解决方案 »
- 一个文件操作的疑问,关于readLn()
- 如何在文本文件的行首增加指定字符,然后再在行首插入一行,行末也增加指定字符?
- 如何通过ADO连接加密数据库?
- 有关事务的问题,没事的人进来看一下,
- 谁有公交换乘的算法?
- 老板要我做这样的表格,好难啊
- 谁有关于delphiX控件的相关帮助文档及例子啊?谢谢!
- 关于QRChart
- ★如何通过delphi学习windows api,消息什么的?有没有专门用delphi描述的关于windows编程的书?请介绍几本纸书,谢谢!
- 我想把几幅BMP图象放在IMAGELIST中,然后根据需要取出放在IMAGE中,可惜不行~~
- Delphi中数据备份还原问题
- delphi中如何读取Access数据库中的数据,并赋值给的变量
sql_str:='select * from 水电信息表 where 录入日期 between'''+tt1+''' and '''+tt2+''' ';
with ADOQuery1 do
begin
close;
SQL.Clear;
SQL.Add(sql_str);//[Error] report_cur.pas(157): Incompatible types: 'String' and 'TStrings'
open;