多层Append,为什么没有增加上去?????
多层Append,为什么没有增加上去。
with ClientDataset1 do
begin
close;
CommandText:='select * from table';
open;
Append;
fields[0].value:=value0;
...
Post;
ApplyUpdates(-1);
showmessage('append a record successed.');
end;
我还试过:
AppendRecord([value0,value1.....]);
ApplyUpdates(-1);
那表还是没有正常增加上去。怪事。
此段运行正常就是没有增加到Access数据库中。
注:服务端是:ADO+remote data module
ADO的连接应该没有错,它的connectionString我写了函数给它,没有问题,
奇怪,大虾快帮忙
大虾快帮忙
大虾快帮忙