+ -
当前位置:首页 → 问答吧 → delphi 查询excel

delphi 查询excel

时间:2011-12-13

来源:互联网

为什么我delphi 查询excel的时候, excel里有小三角的我怎么都查询不到呢???

  conExcel.Close;
  conExcel.Connected := False;
  conExcel.ConnectionString := format('Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s;'
  +'User ID=Admin;Password=;Extended Properties=''Excel 8.0;IMEX=1'';Persist Security Info=False',
  [ed1F_DoorID.Text]);
  try
  conExcel.Connected := True;
  except
  on E: Exception do
  begin
  exit;
  end;
  end;

  sSQL:='Select 客户编号,厨房新表号 +' From ['+vSheet+'] where 客户编号 is not null' ;

连接语句这样写

作者: lq8800835   发布时间: 2011-12-13

http://hi.baidu.com/zkgis/blog/item/297883227f6c925f9922ede2.html

作者: funxu   发布时间: 2011-12-13