PB更新报错:Database transation information not available call se

问题描述:

PB更新报错:Database transation information not available call settrans or settransobjec
Database transation information not available. call settrans or settransobjec
更新代码是:
if dw_1.update()=1 then
commit;
else
rollback;
end if
tab_1.tabpage_1.dw_1.retrieve()
return
打开窗口时添加了:
SQLCA.AutoCommit=true
数据窗口是由多个表拼接成的
里面不止一个主键
请问怎么解决?
1个回答 分类:综合 2014-09-25

问题解答:

我来补答
在该窗口所在的window中的open事件中写
dw_1.settransobject(sqlca)
再问: ...这个必须写了= =
再答: 你 update属性设置了吗? 在菜单栏rows -> update properties
 
 
展开全文阅读
剩余:2000
上一页:这一步看不懂
下一页:这题详细解释