Dim rs As Recordset, Y As Double
Set rs = New ADODB.Recordset
rs.ActiveConnection = CurrentProject.Connection
rs.Open "RxLevelSub", , adOpenKeyset, adLockOptimistic
rs.MoveFirst
Do Until rs.EOF = True
MsgBox rs!ID
rs.MoveNext
提示方法和成员未找到,怎么办阿?
Loop
rs.Close
Dim CN As New ADODB.Connection
Dim RS As New ADODB.Recordset
Set CN = CurrentProject.Connection
RS.Open "SELECT * FROM RxLevelSub", CN, adOpenKeyset, adLockReadOnly
Do Until RS.EOF
MsgBox RS!ID
RS.MoveNext
Loop
RS.Close
Set RS = Nothing
CN.Close
Set CN = Nothing