请问command1_click 事件中 adobc1.recordset.movenext 到最后一条的下一条时会出错,要如何写代码

解决方案 »

  1.   

    if adobc1.recordset.eof then adobc1.recordset.MovePrevious 
    将这句加在adobc1.recordset.movenext 之前。^_^
      

  2.   

    If 1.Adodc1.Recordset.EOF Then
    1.Adodc1.Recordset.MovePreviousElse
    1.Adodc1.Recordset.MoveNextEnd If
    提示错误: 类型不匹配

      

  3.   

    If Adodc1.Recordset.EOF Then
      Adodc1.Recordset.MovePrevious
    Else
     Adodc1.Recordset.MoveNext
    End If
      

  4.   

    if not adodc1.recordeset.eof then 
       adodc1.recordset.movenext
    end if
      

  5.   

    if not (adodc1.recordset.eof and adodc1.recordset.bof) then
      ...............
    end if
      

  6.   

    if not (adodc1.recordset.eof) then
    adodc1.recordset.movenext
    endif