E
edns
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一子表 mytable_son (pno,mynum) ,主表 mytable_main(pno,smynum) (2表均为缓冲模式)
mytable_son
pno mynum
01 12
01 30
01 5
02 6
02 4
mytable_main
pno smynum
01 47
02 10
pno为 keyfield
现在 每当我新增一笔时,提示 at beginning of table 错误
代码(写在 field onchange事件中):
datamodule1.mytable_mainsmynum.value:=datamodule1.mytable_mainsmynum.value-datamodule1.mytable_sonmynum.oldvalue+datamodule1.mytable_sonmynum.newvalue;
请大家帮忙
mytable_son
pno mynum
01 12
01 30
01 5
02 6
02 4
mytable_main
pno smynum
01 47
02 10
pno为 keyfield
现在 每当我新增一笔时,提示 at beginning of table 错误
代码(写在 field onchange事件中):
datamodule1.mytable_mainsmynum.value:=datamodule1.mytable_mainsmynum.value-datamodule1.mytable_sonmynum.oldvalue+datamodule1.mytable_sonmynum.newvalue;
请大家帮忙