在应付款管理模块下,查询科目帐,报错"运行时错误'440'Automation错误"

微信号:yyrjlls
技术咨询,有偿服务!
复制微信号
技术咨询,有偿服务!
复制微信号
原因分析:分析此问题,查看Ap_detail表中的ccode有些字段值是否有异常。经查看有些字段值中既有科目编码又有科目名称,此时就造成了与code表中ccode字段值的不同,插入失败。
问题解答:备份数据,修改Ap_detail表中的ccode字段值有异常的记录,相关语句如下:update ap_detail set ccode ='2121' where ccode='2121 应付账款'and Ap_Detail.cCode is not null and iPeriod=0 and cFlag='AP'update ap_detail set ccode ='1151' where ccode='1151 预付账款'and Ap_Detail.cCode is not null and iPeriod=0 and cFlag='AP'