请各位富翁帮忙看看关于batchmove的代码 (100分)

N

neilw

Unregistered / Unconfirmed
GUEST, unregistred user!
with datamodule1 do begin
Table1.close;
batchmove1.Source:=datamodule1.Querys;
BatchMove1.Destination:=datamodule1.table1;
table1.tablename:='dbo.GRXXK';
BatchMove1.mode:=batAppendUpdate;
Table1.IndexDefs.Update;
//table1.indexname:='PK_GRXXK_1__10';
table1.indexfieldnames:='grbh';
BatchMove1.Execute;
end;
想要从querys把数据导到table1
执行到 BatchMove1.Execute
报错“destination must be indexed.”
 
你的Table1的索引文件正确吗?
我也正对索引头疼呢?
 
我试了一下,用table到table传递数据是没问题的。
难道是不支持query?请高手指点。
 
怎么Table和Query都没有Open呀,这样怎么可以呢,
 
同意robertcool
 
你的索引一定设的不对。
 
顶部