在窗体里添加如下代码:
Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
Adodc1.Caption = "当然记录:" & Adodc1.Recordset.AbsolutePosition & "\" & "总记录数:" & Adodc1.Recordset.RecordCount - 1
End Sub