“Private Sub Command2_Click()
Dim a
Dim i, h As Integer
If Not Rst.EOF() Then
For i = 1 To Rst.RecordCount
For h = 1 To 9
If Rst.Fields("z(" & h & ")").Value = "银行存款" Then
a = a + Val(Rst.Fields("j(" & h & ")").Value)
End If
Next h
Rst.MoveNext
Next i
Text4.Text = Val(a)
End If
End Sub”
怎么执行时出现:
无效使用NULL??
我把每个J(I)的字段属性均设置为数字格式啊!默认属性为“0”啊!自动为0啊!