是什么数据库?看看这个如何:tempstr = "update jzk set " & MSFlexGrid2.TextMatrix(i, 0) & " = " & '" & MSFlexGrid2.TextMatrix(i, 1) & "' Where 编号='" & MSFlexGrid2.TextMatrix(1, 1) & "'"