金蝶凭证查询,提示null,错误代码:94(5EH) Source :JournalLib
网上的解决办法:备份账套后请参考如下语句处理:UseAIS2009######--(指问题账套的账套号)DELETEFROMT_VoucherWHEREFVoucherI...
网上的解决办法:
备份账套后请参考如下语句处理:Use AIS2009###### --(指问题账套的账套号)DELETE FROM T_Voucher WHERE FVoucherID NOT IN (SELECT FVoucherIDFROM T_VoucherEntry)DELETE FROM T_VoucherBlankOut WHERE FVoucherID NOT IN (SELECTFvoucherID FROM T_VoucherEntry)DELETE FROM T_VoucherEntry WHERE FVoucherID NOT IN (SELECTFVoucherID FROM T_Voucher UNION SELECT FVoucherID FROMT_VoucherBlankOut)
这个没有用~~~ 展开
备份账套后请参考如下语句处理:Use AIS2009###### --(指问题账套的账套号)DELETE FROM T_Voucher WHERE FVoucherID NOT IN (SELECT FVoucherIDFROM T_VoucherEntry)DELETE FROM T_VoucherBlankOut WHERE FVoucherID NOT IN (SELECTFvoucherID FROM T_VoucherEntry)DELETE FROM T_VoucherEntry WHERE FVoucherID NOT IN (SELECTFVoucherID FROM T_Voucher UNION SELECT FVoucherID FROMT_VoucherBlankOut)
这个没有用~~~ 展开
1个回答
展开全部
金蝶凭证主要有两张表,一张是t_voucher 一张是t_voucherentry,两个表内容都是对应的,前张是凭证,后张是凭证的序时簿,在凭证查询的时候,会调用后面那张表,我遇过类似的问题,也是报提示null,发现,t_voucher 有某个凭证,而t_voucherentry却没有,两表不能对应起来,所以查询时报null错,后来我直接把t_voucher表里多余的删除了,然后凭证查询就正常了,然后再让会计把那删除的几张凭证补上就OK了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询