我在CRecordset::AddNew()之后增加了一个记录,可更新后显示,新纪录被插在记录集中间,而且每次都插在第36条记录后面,这是为什么啊??
AddNew()默认不是插在记录集的最后吗!!???

解决方案 »

  1.   

    For dynasets, new records are added to the recordset as the last record. Added records are not added to snapshots; you must call Requery to refresh the recordset.Open Database and see the result.
      

  2.   

    是插入在记录集的最后,但是不一定在数据库的表的最后。刚开始插入到记录集的最后,你调用updata函数以后就给你更新到数据库了(按照主码的次序),然后你调用requery函数就在记录集里面按主码排序