我用
adoquery.sql.text :='select top 1 * from Expenditure';
adoquery.Insert;
然后用数据控件加上内容
adoquery.pos;
adoquery1.close;
adoquery1.open;
(adoquery1是将Expenditure'表中的字段显示到grid中)
剧然不显示刚刚添加的记录,
要在过1两秒钟在执行一下
adoquery1.close;
adoquery1.open;才会显示,
难到在POS后,adoquery写到数据库还要一点时间吗.
adoquery.sql.text :='select top 1 * from Expenditure';
adoquery.Insert;
然后用数据控件加上内容
adoquery.pos;
adoquery1.close;
adoquery1.open;
(adoquery1是将Expenditure'表中的字段显示到grid中)
剧然不显示刚刚添加的记录,
要在过1两秒钟在执行一下
adoquery1.close;
adoquery1.open;才会显示,
难到在POS后,adoquery写到数据库还要一点时间吗.
提交数据后你再
adoquery1.close;
adoquery1.open;
这样就OK了
我以前也是这样子解决的