我试过if AQ.eof then...
但不是最后一条呀

解决方案 »

  1.   

    IF Not ADOQuery1.Eof then
      ADOQuery1.Last;
      

  2.   

    if ADOQuery1.RecNo=ADOQuery1.RecordCount then {}
      

  3.   

    if AQ.eof then... 如果不是的话.那就有问题了
      

  4.   

    if AQ.eof then... 就是这个看看问题是不是处在别处
      

  5.   

    可以通过
     adoquery 的 RecordCount 和 RecNo 来判断.
     
    " if adoquery1.Recordcount=adoquery1.RecNo+1 then "
      

  6.   

    设置一个变量
    var i:integer;  //标志顺序的记录号
    begin
      i:=1;
      while not AQ.eof do
       begin
         if i=AQ.Recordcount then
            showmessage('this is the last record!');
         i:=i+1;
         AQ.next;
       end;
    end;
    这样,当你到作后一条的时候就会提示你了