我有这样一段源码:
Set rst = New ADODB.Recordset
rst.ActiveConnection = CurrentProject.Connection
rst.CursorType = adOpenStatic
rst.LockType = adLockOptimistic
rst.Open "Select * from 班组"
zqs = rst.RecordCount
aa = 0
rst.MoveLast
If rst!组12 = "否" Then
bb(1) = rst!组12连出空
rst.MoveLast
Else
Do Until rst!组12 = "否"
rst.MovePrevious
Loop
bb(1) = rst!组12连出空
rst.MoveLast
End If