代码如下:
   with query1 do
          begin
             open;
             first;
             edit;
             while not eof do
               begin
                 fieldbyname('值班时间').asdatetime:=now;
                 next;
                 edit;
               end;
             post;
          end; 
出现的错误提示是:Project Project1.exe raised exception class EDBEngineError with message' An error occurred while attempt ing to initialize the borland Database Engine(error $2501).

解决方案 »

  1.   

    重装BDE试试 with query1 do
              begin
                 open;
                 first;
                 edit;
                 while not eof do
                   begin
                     fieldbyname('值班时间').asdatetime:=now;
                     next;
                   end;
                 post;
              end; 
      

  2.   

    1重装BDE试试
    2 with query1 do
              begin
                 open;
                 first;
                 edit;
                 while not eof do
                   begin
                     fieldbyname('值班时间').asdatetime:=now;
                     next;
                   end;
                 post;
              end; 
      

  3.   

    with query1 do
              begin
                 open;
                 first;
                 edit;
                 while not eof do
                   begin
                     FieldValues['值班时间']:=now;
                     next;
                     edit;
                   end;
                 post;
              end;
      

  4.   

    楼上的,我有sql 语句:select * from 表名,order by 字段名 该语句没有错误,可以告诉我为什么错了吗?
      

  5.   

    看看我以前的帖子
    http://expert.csdn.net/Expert/topic/1580/1580239.xml?temp=.1213953
      

  6.   

    To sduzjw(幼儿园大班)你好!
      为什么每一次修改完之后都要重新修改它的编辑状态呢?
    你可以告诉我吗?