VB难题参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突 5

adoRecordset.Fields.Append"序号",adVariant,,adFldMayBeNull+adFldIsNullable+adFldUpdatab... adoRecordset.Fields.Append "序号", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "供应商", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "产品名称", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "型号", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "单位", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "入库日期", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "入库数量", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "单价", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "盘点日期", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "当前库存", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Fields.Append "备注", adVariant, , adFldMayBeNull + adFldIsNullable + adFldUpdatable
adoRecordset.Open
For i = 3 To 10
' adoRecordset.AddNew Array("序号", "供应商", "产品名称", "型号", "单位", "入库日期", "入库数量", "单价", "盘点日期", "当前库存", "备注"), Array(xlBook.xlSheets(i, 1), xlBook.xlSheets(i, 2), xlBook.xlSheets(i, 3), xlBook.xlSheets(i, 4), xlBook.xlSheets(i, 5), xlBook.xlSheets(i, 6), xlBook.xlSheets(i, 7), xlBook.xlSheets(i, 8), xlBook.xlSheets(i, 9), xlBook.xlSheets(i, 10), xlBook.xlSheets(i, 11))

adoRecordset.AddNew Array("序号", "供应商", "产品名称", "型号", "单位", "入库日期", "入库数量", "单价", "盘点日期", "当前库存", "备注"), Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
运行时,显示:
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突

Next i
展开
 我来答
过悌谈安青
2019-07-16 · TA获得超过3897个赞
知道大有可为答主
回答量:3095
采纳率:30%
帮助的人:176万
展开全部
Me.Adodc1.Recordset.Find
("编号="
+
userID)
改为
Me.Adodc1.Recordset.Find
"编号='"
&
userID
&
"'"
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式