Select * From settle_accu Where ym=(Val(Thisform.combo2.Value))*100+Val(Thisform.combo3.Value)-1 Into Cursor temp1 Readwrite
Select * From settle_accu Where ym=(Val(Thisform.combo2.Value))*100+Val(Thisform.combo3.Value) Into Cursor temp2 Readwrite
Select accu,Sum(qty) As qty,io From bill Where Substr(Dtos(Date),1,6)=Alltrim(Thisform.combo2.Value)+Alltrim(Thisform.combo3.Value) Group By accu,io Into Cursor tmp1 Readwrite
SELECT tmp1
Locate FOR Alltrim(tmp1.accu)==Alltrim(temp1.accu) AND ALLTRIM(tmp1.accu)==ALLTRIM(temp2.accu) And Alltrim(tmp1.io)=="I"
If Found()
Replace temp2.inttl WITH temp1.inttl+tmp1.qty
endif
为什么我Temp2.inttl的结果前面总是多个10?(inttl是数值型n(11,2),如果我的inttl是373617.31,但它显示的是10373617.31),这是什么原因呢?而且没有规律的.有时显示正确,但有时前面不是多个1就是10???