你要在form_load中写代码:
res.movelast
res.movenext还需要设置recordset的属性(允许添加新纪录的属性)

解决方案 »

  1.   

    data1.recordset.movelast
    data1.recordset.movefirst
    data1.recordset.addnew
      

  2.   

    data1.recordset.book=data1.recordset.lastmodify
      

  3.   

    以上的解答在VB6.0中都未调试通过,我比较倾向于jisheng的方法,但为何调试通不过?
      

  4.   

    jisheng:数据库里已有记录,其实我一开始写的代码和你给的相同,但编译时出现以下提示:run-time error '91'
    object variable or with block varkable not set.帮忙找一下原因吧,谢谢!
      

  5.   

    run-time error '91'
    object variable or with block varkable not set.
    出现这种错误,往往是你定义了对象,但没有用set xxx = [New] yyy 来创建对象