sql = "delete form table where id='571'"
cn.Execute sql就是我要删除掉table表中,id是571的那条记录..
可是提示不对..
请问,该如何删除..

解决方案 »

  1.   

    sql = "delete from table where id='571'"
      

  2.   

    sql = "delete from [table] where id='571'"
      

  3.   

    sql = "delete from [table] where [id]=571"
      

  4.   

    用了楼上两位的方法,都不行..提示:
    [microsoft][ODBC microsoft access driver]语法错误(操作符丢失)在查询表达式
    "form charat where [id]=571"中。.
    均是如此。.
      

  5.   

    检查方法
    1 你在access里面写那条删除语句看看什么错误提示
    2 换一个删除字段deletee from t where name='aa'写到现在发现你的错误了
    from  form?你..............拼写错了