excel的宏文件,在一台电脑上没问题,再另外一台电脑上报错,哪位大神帮忙指点一下,感谢啊

[复制链接]
查看11 | 回复2 | 2021-1-27 05:16:41 | 显示全部楼层 |阅读模式
VorhandenseineinesFeldespr黤enmitADO
PublicFunctiondbRecordCount(TableAsString)AsLong
DimrstAsADODB.Recordset
OnErrorGoToErrHandler
Setrst=NewADODB.Recordset
rst.Open"SELECT*FROM"&Table,cnt'Createtherecordset.
Setrst.ActiveConnection=Nothing'Disconnecttherecordset.
dbRecordCount=rst.RecordCount
rst.Close
Setrst=Nothing
ExitFunction
ErrHandler:
gErrors.DisplayErrorcsErrSource&".AddNewRecord"
Stop
EndFunction
分 -->
回复

使用道具 举报

千问 | 2021-1-27 05:16:41 | 显示全部楼层
有知道的大神吗?指点一下呗
回复

使用道具 举报

千问 | 2021-1-27 05:16:41 | 显示全部楼层
能详细描述下是什么错误么
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行