Dim Rs As New ADODB.Recordset
Dim Conn As New ADODB.Connection
Set Conn = CurrentProject.Connection
Rs.Open "select * from 表1", Conn, adOpenDynamic, adLockOptimistic
Do While Not Rs.EOF
If IntA > 0 Then
Debug.Print IntA - Rs.Fields("数值")
End If
IntA = Rs.Fields("数值")
Rs.MoveNext
Loop
Set Rs = Nothing
Set Conn = Nothing