问题原因: |
主要的原因是Insert Into SaleBillVouchs (SBVID,AutoID,cInvCode,iQuantity,iUnitPrice,iTaxUnitPrice,iMoney,iTax,iSum,iNatUnitPrice,iNatMoney,iNatTax,iNatSum,iMoneySum,iExchSum,cMemo,iTaxRate) Values(1989,2741,'CP0020004',55.787,3918.2022693459,4584.28,218584.75,37159.41,255744.16,3918.2022693459,218584.75,37159.41255744.16,0,0,,17)执行有问题. 共有三处错误:
1)Insert Into Values1989(id),2741(autoid),执行插入的语句中主表和子表的id号对应的不是一张发票上的记录,原因是这两张发票号前几位是相同的,例如:一张6666,另一张6666 1;
2)37159.41255744.16两个数值之间缺少;
3)最后的,,之间缺少null; |