VBA连接字符串到IBM AS400在Office365 64位
以下VBA连接字符串在MS Office 2016 32位中正常工作:
Dim rs As ADODB.Recordset
str_400Connect = "Provider=IBMDA400.DataSource.1;Data Source=" & Trim(aDSN) & ";Initial Catalog=SYS01;User Id=" & Trim(aUID) & ";Password=" & Trim(aPassword) & ";"
Set gConnect_AS400 = New ADODB.Connection
With gConnect_AS400
.ConnectionString = gStr_400Connect
.Open
End With
但是,在我升级到Office365 64位(其他组件保持不变,例如IBM驱动程序等)之后,上述连接字符串未能运行并返回错误信息: “找不到提供商。可能无法正确安装。
您知道我可以在64位办公室的连接字符串中使用哪个提供商?非常感谢。
The following VBA connection string works fine in MS Office 2016 32-bit:
Dim rs As ADODB.Recordset
str_400Connect = "Provider=IBMDA400.DataSource.1;Data Source=" & Trim(aDSN) & ";Initial Catalog=SYS01;User Id=" & Trim(aUID) & ";Password=" & Trim(aPassword) & ";"
Set gConnect_AS400 = New ADODB.Connection
With gConnect_AS400
.ConnectionString = gStr_400Connect
.Open
End With
However, after I have upgraded to Office365 64-bit, (other components remain unchanged, e.g. IBM drivers etc), the above connection string is failed to run and return the error message:
"Provider cannot be found. it may not be properly installed."
Do you know what provider can I use in the connection string for 64bit office? Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要为X64平台安装合适的驱动程序。
You need to install a proper driver for the x64 platform.