作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/07/14 18:35:28
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
数据窗口是由多个表拼接成的
里面不止一个主键
请问怎么解决?
PB更新报错:Database transation information not available call se
在该窗口所在的window中的open事件中写
dw_1.settransobject(sqlca)
再问: ...这个必须写了= =
再答: 你 update属性设置了吗? 在菜单栏rows -> update properties