conn.execute"delete from upfile where FilePath in('"&FilePath&"')"删不了多条记录
FilePath是复选框的选集
conn.execute"delete from upfile where FilePath in('"&FilePath&"')" 这个复选框的值是FilePath
如果是选一个的话,可以删成功,选两个以上就删不了了。怪事。
但是如果换回ID,又可以删所选两条以上的记录:
conn.execute"delete from upfile where id in("&id&")" 这个复选框的值是id
upfile数据库记录大概是这样:
id FilePath
1 b5.jpg
2 a1.jpg
3 b2 .jpg