VBA连接字符串到IBM AS400在Office365 64位

发布于 2025-02-09 18:06:47 字数 562 浏览 4 评论 0原文

以下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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眉黛浅 2025-02-16 18:06:47

您需要为X64平台安装合适的驱动程序。

You need to install a proper driver for the x64 platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文