为什么总是:transaction not connected?
各位大虾请帮看看,小弟以下语句,放在w_main的open事件里运行正常,但是放在界面或cb_1的click事件里运行就会提示:transaction not connected!
为什么放在不同事件里会有不同的结果?如何解决?谢谢啦!(我的connect using sqlca;等已写好,能正常连接,在open事件里能做任何sql操作,在click、close等其他事件中就是不行,头大啊!)
string t_userid
select user_name into :t_userid from user where user_id='ABC' ;
if sqlca.sqlcode < 0 then
messagebox('提示','错误信息:'+sqlca.sqlerrtext)
end if