String sql= "delete  表名 where 条件";(删除一行)
 querydataset .executeUpdate(sql);你提供的条件太少了,这么小气!

解决方案 »

  1.   

    其实就是用jdbNavbToolBar, sql命令我只设置了Select语句作为querydataset1, 按理说,用了jdbNavToolBar就不必设置其他, 但是却只能存入数据, 不能删除。 每次都报错如下: The row specified by the resolution query was not found.Typical reasons are:     Somebody deleted or changed this row.     A floating point comparison failed to match.     A CHAR field needs space padding (see Database.setUseSpacePadding).Query:  Query:
    nullRow values used for finding existing row:
    Index=:SNC Name=:Customer=:Contact1_Lastname=:Contact1_Firstname=:Contact1_Position=:Contact1_Telefax=:Contact1_ZIP Code=:Contact1_City=:Contact1_Country=:Contact1_Telephone=:Contact1_Street=:Contact1_Mail=:Siemens_Salesman=:Siemens_Position=:Siemens_Telephone=:Siemens_Telefax=:Siemens_Mail=:Siemens_Department=:Siemens_Office=:Contactdate=:Reason for Visit=:Chance=:Expected Volume=4:Technical/Sales Re=gthtrh:Follow up activities=thththt:Products=
      

  2.   

    在初始化方法中加入:
    database1.setUseSpacePadding(true);
      

  3.   

    在win2000下用access2000, 一切ok;在NT下用access97怎么弄都不行, 救命  啊
      

  4.   

    我的版本就是NT.sp6, 看来没人能解决了!!