去看一下MSDN关于CRecordSet的Delete方法的帮助吧! 里面有这样一段话:After a successful deletion, the recordset’s field data members are set to a Null value, and you must explicitly call one of the Move functions in order to move off the deleted record. Once you move off the deleted record, it is not possible to return to it. If the data source supports transactions, you can make the Delete call part of a transaction. 我的理解是,你要在Delete方法执行后再做一次roll action or transaction!
里面有这样一段话:After a successful deletion, the recordset’s field data members are set to a Null value, and you must explicitly call one of the Move functions in order to move off the deleted record. Once you move off the deleted record, it is not possible to return to it. If the data source supports transactions, you can make the Delete call part of a transaction.
我的理解是,你要在Delete方法执行后再做一次roll action or transaction!
你能说清楚一点吗。
stzhou大哥:
好象只有在Edit或AddNew后才能用Update();请大家再帮帮忙!谢谢!