adoquery1.SQL.Clear;
adoquery1.SQL.Add('select table1.id as 自动编号, table1.company as 公司代码,  table1.barcode as 条型码,  table1.liushui as 流水码, table1.inout as 货物状态, table1.datetime as 日期  from table1 WHERE TABLE1.COMPANY='"+edit1.text+"');
adoquery1.ExecSQL;
adoquery1.active:=true;为什么会报错呢~~错在那里~请指点一二

解决方案 »

  1.   

    adoquery1.SQL.Add('select table1.id as 自动编号, table1.company as 公司代码,  table1.barcode as 条型码,  table1.liushui as 流水码, table1.inout as 货物状态, table1.datetime as 日期  from table1 WHERE TABLE1.COMPANY=' + #39 + edit1.text + #39);还有,最好不用汉字
      

  2.   

    哦,我要在DBGRID里显示中文的啊~~你有其他方法吗
      

  3.   

    DBGRID里显示中文可以在列属性中直接输入的