改为:
Private Sub Command14_Click()
Dim ii, jj, kk As Integer
For ii = 0 To Rst.RecordCount
For jj = 0 To Rst.Fields.Count
If Rst.Fields("j(" & jj & ")") = "银行存款" Then
If Not Rst.EOF() Then
n.Text = Rst.Fields("n").Value & ""
Text1(0).Text = Rst.Fields("j(" & jj & ")").Value & ""
End If
End If
Next jj
Next ii
End Sub
执行后:在。。。集合中,找不到项目
黄条还是指在:“If Rst.Fields("j(" & jj & ")") = "银行存款" Then”