如此小问题为什么解决不了??????
小弟有如下一小问题,怎么都解决不了?
运行时,出现如下错误提示:
aqReport:parameter strY not found
清大虾帮忙!
begin
strsql := 'select * from tblHistoryRecords where date>=:strY+#45+:strM+#45+inttostr(01)+#39 and date<=:strY+#45+:strM+#45+inttostr(31)+#39';
end;
with aqReport do
begin
close;
sql.Clear;
sql.Add(strsql);
Parameters.ParamByName('strY').Value:=trim(editYear.Text);
Parameters.ParamByName('strM').Value:=trim(comboxMonth.Text);
open;
end;