string sql = "delete  from type where sj = '" +lvi.SubItems[4].Text.ToString (); + "' ";

解决方案 »

  1.   

    string sql = "delete  from type where sj = #" +lvi.SubItems[4].Text.ToString (); + "#";
      

  2.   

    用参数吧。
      
    ---------------------------------------------
    EMail:[email protected] 请给我一个与您交流的机会!
      

  3.   

    Access对于日期字段 需要用#DateTime#来标示
      

  4.   

    ……
    string sql = "delete  from type where sj = #" +lvi.SubItems[4].Text.ToString (); + "#";
     ------------------------------------------------------------------------------string sql = "delete  from type where sj = #" +lvi.SubItems[4].Text.ToString()+ "#";
      

  5.   

    http://community.csdn.net/Expert/topic/5653/5653106.xml?temp=.421261揭帖谢谢