修改记录就用
rst.edit
rst.fields("xxx")=xxx
rst.update

解决方案 »

  1.   

    哦,我弄错了
    ado就是去掉第一句吧
      

  2.   

    msdn里面好像没找到,
    那位大虾赶快帮忙,一定给分
      

  3.   

    .......
    rst.Source = "select * from members where ...."    '找出你要修改的记录
        rst.ActiveConnection = cnn
        rst.Open
    rst.("field_name")=theValue
    ...
    rst.update
    就可以了
    hehe
      

  4.   

    哦,上面的是修改一条记录,如果要修改许多的话.......
    rst.Source = "select * from members where ...."    '找出你要修改的记录
        rst.ActiveConnection = cnn
        rst.Open
    while not rst.eof 1
       rst.("field_name")=theValue
        ...
       rst.update
    rst.movenext
    wend
      

  5.   

    如果是批量数据的修改那就用sql语句完成了
      

  6.   

    to wolfw(阿干) 
        你的方法是可行的,但是效率不高,有没有其他的方法
      

  7.   

    直接修改,再Update就可以了。。
    rst("field_name")=theValue
    rst.Update
      

  8.   

    cnn.excute "update set....."
    应该也行