dm.zwtftemp.Close;
  dm.zwtftemp.SQL.Clear;
  dm.zwtftemp.SQL.add(' select * from zw ');
  dm.zwtftemp.SQL.add('  where sxcode='+#39+'0'+#39);
  try
    dm.zwtftemp.open;  
except
    abort;
  end;

解决方案 »

  1.   

    一执行到dm.zwtftemp.open就出现如上错误,
      

  2.   

    ' where sxcode='+#39+'0'+#39 这里暂时注释了看看是否有问题?
      

  3.   

    可能是数据库端口开着,又打开导致错误,我以前已有类似错误过,解决方法是看看前面程序中有没有把dm.zwtftemp.Close,这个数据库端口不一定在本FORM中,是你全部的运行程序.
      

  4.   

    我想也是这样不过我这样改后
    if dm.zwtftemp.Active=true then dm.zwtftemp.Active:=false ;
    dm.zwtftemp.SQL.Clear;
    dm.zwtftemp.SQL.add(' select * from zw ');
    dm.zwtftemp.SQL.add(' where sxcode='+#39+'0'+#39);
    try
    dm.zwtftemp.open; 
    except
    abort;
    end 
    还是出错请问怎么改