当前位置:编程学习 > VB >>

我写了一个sql语句,执行的时候老是提示"open方法的_recordset失败"

sql = " select * from sheet1 where substring(mtel,1,7) not in (select mnum from sheet2)"
ado.Open sql, cn, adOpenStatic, adLockOptimistic

就是这句 修改了无数次总是报错 我用的是vb+access  各位大虾怎么解决阿 --------------------编程问答-------------------- 不知道你的数据库连接是否正确!! --------------------编程问答-------------------- access不支持substring,改用mid --------------------编程问答-------------------- substing是sql的函数 access中用mid函数 --------------------编程问答-------------------- 这个简单啊,网上搜一下就得到答案了.
补充:VB ,  基础类
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,