为什么是1? 可能是SQL语句有错,select * from xxx where null改为select * from xxx where 1=2试下. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 nanman(南蛮) 回答的是对的,你再试一试,你应该给他加分的。 adLockPessimistic 保守式记录锁定(逐条)。提供者执行必要的操作确保成功编辑记录,通常采用编辑时立即锁定数据源的记录的方式 你弹出的的是rs1.locktype的值也就是你前面给的adlockpressimisticrs1.locktype=1和rs1.locktype=adlockpressimistic同效 把rs1.LockType = adLockPessimisticSet rs1 = conn.Execute("select * from xxx where null")改为:rs1.Open "select * from xxx where 1=2", conn, adOpenDynamic, adLockPessimistic, adCmdTexttry again. 用conn.Execute返回的记录集只能是只读向前移动的,你虽然指定adLockPessimistic,但被返回的记录集覆盖了,用rs1.Open "select * from xxx where null", conn, adOpenDynamic, adLockPessimistic, adCmdText 这么麻烦,不如用:conn.execute("insert into ......")conn.execute("update ......") timer的问题 vb 操作excel 设置单元格显示格式 急~vb串口通讯无效~~ 连接数据库效率问题 新手請教﹕有關 DataGrid ,MSFlexGrid,MSHFlexGrid 的一些問題 ? 急!!!!!!! 求助excel查询 为什么引用form2.0的时候说“找不到指定的模块” 如何动态创建并加载winsock 在vb6.0中怎么连接Informix数据库? 有谁知道Installer VISE 3.5.1的注册码,八十分相送! SQL语句出错!解决了马上加分!谢谢! 使用DataReport后,程序作安装包时有什么要注意的?
rs1.locktype=1和rs1.locktype=adlockpressimistic同效
rs1.LockType = adLockPessimistic
Set rs1 = conn.Execute("select * from xxx where null")
改为:
rs1.Open "select * from xxx where 1=2", conn, adOpenDynamic, adLockPessimistic, adCmdText
try again.
conn.execute("insert into ......")
conn.execute("update ......")