Office中国论坛/Access中国论坛
标题: "参数不足,期待是1",如何解决? [打印本页]
作者: yumendaxia 时间: 2015-1-25 19:20
标题: "参数不足,期待是1",如何解决?
本帖最后由 yumendaxia 于 2015-1-25 21:16 编辑
Private Function ImportData(i As Integer, a As Double, b As Double)
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("select F2 from Temp1 where NUM = " & i & " ")
如题,如图。"参数不足,期待是1",请教大家如何解决,感谢!
作者: roych 时间: 2015-1-26 09:00
- Dim rst As DAO.Recordset
- Set rst = CurrentDb.OpenRecordset("select F2 from Temp1 where NUM =" & i )
复制代码
强调过好多次,记录集对象尽量写完整。否则,当引用了ADO和DAO时,很容易出错。
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) |
Powered by Discuz! X3.3 |