该程序是想实现对dbgrid中标题字段中任何一项记录进行点击 弹出另一个窗体form2
但程序结果只是刷新 不知道为什么 请指教
procedure tform1.cellclick(column:tcolumn);
begin
query1.close;
query1.sql.clear;
query1.sql.add('select * from 统计 where 标题=:''column.fieldname');
query1.open;
form2.show;
end;
end.
其中统计为表名