sql = "delete from [设计计算] where [管段编号]='" & MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, 2) & "'"
VB的ADO不支持操作mdb数据库时将数据库名、字段名用方括号括起来,上面已经说过了,为什么还要这样!!怪不得删除不了记录!!!
sql = "delete from 设计计算 where 管段编号='" & MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, 2) & "'"
VB的ADO不支持操作mdb数据库时将数据库名、字段名用方括号括起来,上面已经说过了,为什么还要这样!!怪不得删除不了记录!!!
sql = "delete from 设计计算 where 管段编号='" & MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, 2) & "'"
[此贴子已经被作者于2020-3-30 21:14编辑过]
请不要选我!!!