ADO的recordset问题!! 怎样利用recordset的filter来实现范围选择就是说:sql语句:select * from table where name between 'a' to 'h'现在要用filter实现,怎样啊?如果直接把name between 'a' to 'h'传给filter会说参数不对。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 期待是1???is 'name' a TYPE of char???i think it maybe a string?m_strFilter = _T("xxx >= \'a\' AND xxx <= \'h\'"); 可能是楼上说的,不过,最好楼主把代码贴出来============================================================================提问题时要在标题中简明扼要的说明 给我发信息请附带原帖地址http://www.betajin.com/alphasun/index.htm http://alphasun.18en.com/ http://shakingtoolkit.9126.com/DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | AjaxParser词法分析 CString strFilter = "name between 'a'" + " and 'h'"; //注意空格将strFilter转换成BSTR(通过查工具书吧,我也不能写全,好象是SysAllocString()函数),再赋值给filter. 动态加载toolbar的问题? 请教OpenGL选取问题 一个基础问题,急,再线等 ListView刷新问题,在线等. 高分求助工具栏问题 一个女程序员的个人网站,还不错 Windows API 编程的问题。如何精确调整客户区的大小? 在线请教,找错 如何使子菜单灰化,不是菜单项,比如是整个弹出的菜单 mfc对话框+webbrowser编程,如何添加IDownload接口? 需要帮忙,快近来!在线等!!! PreTranslateMessage(MSG* pMsg)
is 'name' a TYPE of char???i think it maybe a string?m_strFilter = _T("xxx >= \'a\' AND xxx <= \'h\'");
============================================================================
提问题时要在标题中简明扼要的说明 给我发信息请附带原帖地址
http://www.betajin.com/alphasun/index.htm
http://alphasun.18en.com/ http://shakingtoolkit.9126.com/
DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | AjaxParser词法分析
将strFilter转换成BSTR(通过查工具书吧,我也不能写全,好象是SysAllocString()函数),
再赋值给filter.