|
还是有问题Dim n As Integer
n = Me.列表44.Column(0)
Dim rs As adodb.Recordset
Dim con As adodb.Connection
Set con = Application.CurrentProject.Connection '或者改成其它的数据库连接 Set rs = New adodb.Recordset
Dim strSQL As String
strSQL = "SELECT 信息追加表.* FROM 信息追加表 WHERE (((单价)<> 0))"
rs.Open strSQL, con, adOpenKeyset, adLockOptimistic' rs.Open strSQL, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
rs.MoveFirst
Do Until rs.EOF rs.Fields("厂商ID") = n '??????????????????----------------------
rs.Update rs.movenext
Loop
|
|