Hello everyone,Now I meet a problem which is hard to handle. Is there anyone who had the experience, pls do me a favor.
It is descripted as below:I use OLEDB to connect a mdb to do some operations of table. First I move to last entry. Then move prev.
But I alway get the return value of 0 after moving to the first entry. But in fact, the current entry is not moved. I don't know why it occurs.为什么移到第一个记录之后得到的都是0,为什么会停在那个记录不动?Thanks in advance.
It is descripted as below:I use OLEDB to connect a mdb to do some operations of table. First I move to last entry. Then move prev.
But I alway get the return value of 0 after moving to the first entry. But in fact, the current entry is not moved. I don't know why it occurs.为什么移到第一个记录之后得到的都是0,为什么会停在那个记录不动?Thanks in advance.
解决方案 »
- 关于tcp的接收方式
- vc连接Access数据库
- VisualAssisX 这个工具识别不了代码中的字符串啊.
- 如何分块读取文件,来者有分,帮忙者有礼物
- 使用CEdit信息显示界面的问题?
- 怎么才能使CToolTipCtrl在所属窗口inactive情况下也能显示tip字符串?急~~~
- Find the process using a Dll ?
- 请教一个安装程序过程中重新启动系统的问题!!!
- 在VC++中,如何动态的创建控件呢?
- 简单任务:SQL 7里存贮大型文本文件的数据类型是什么?
- QueryInterface的一个问题
- VC下,怎么发HTTP的POST请求,万分焦急,在线等待,服务端是用jsp写的
CRowset::MovePrev will return DB_S_ENDOFROWSET if it goes pass the
first record as expeced .
But when I use it in Msjet4.0 OLEDB, it always return S_OKHence loop like this will fail:while(hr != S_OK)
{
hr = rs.MovePrev();
}as it will loop in a circle.When I tested it separately, like:
MoveFirst the MovePrev,
it returns S_OK, and the data is still the first record's
if I MovePrev again,
it again returns S_OK, and the data in the accessor becomes the second
last record.This does not happen with Jet 3.5
Is this a bug of Jet 4.0 OLEDB???
Can anybody explain to me.
Or is there a get around of the problem?Thanks a million!!!