作者: XWQ2000 时间: 2006-10-19 19:43
怎麽用呀 能告诉我吗作者: andymark 时间: 2006-10-19 20:21
如果表中有唯一的ID,也可通过查询求得作者: andymark 时间: 2006-10-19 20:27
Dim IntA As Integer
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作者: XWQ2000 时间: 2006-10-19 23:12
我试了半天还是没有成功