实时错误“3021”BOF或EOF中有一个是“真”,或者当前的记录已被删除
请看如下代码:Option Explicit
Private conn As ADODB.Connection
Private Rst As New ADODB.Recordset
Private Sub Combo1_Click()
If Combo1.Text = "支出" Then
Rst.Fields("b") = Combo1.Text
Combo2.Clear
Combo2.AddItem "日常支出"
Combo2.AddItem "其他支出"
Combo2.Text = Combo2.List(0)
End If
If Combo1.Text = "收入" Then
Rst.Fields("a") = Combo1.Text
Combo2.Clear
Combo2.AddItem "上班收入"
Combo2.AddItem "其他收入"
Combo2.Text = Combo2.List(0)
执行后,出现如下对话框:
实时错误“3021”
BOF或EOF中有一个是“真”,或者当前的记录已被删除。。。。。。。