vba MS Access:无法完成输出操作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7733868/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MS Access: Can't complete the Output operation
提问by Brett Walker
I'm not an experienced vba programmer and working with access is not my cup of tea. I've been asked to fix some errors in an MS Access 2010 VB application. The sole user previously ran the application on a 32-bit platform but now has migrated to 64-bit. This caused the aplication to break. I have made some progress but every issue I resolve another seems to appear.
我不是一个有经验的 vba 程序员,使用 access 不是我的菜。我被要求修复 MS Access 2010 VB 应用程序中的一些错误。唯一用户以前在 32 位平台上运行应用程序,但现在已迁移到 64 位。这导致应用程序中断。我取得了一些进展,但我解决的每个问题似乎都出现了。
The following piece of code
下面一段代码
DoCmd.OutputTo acOutputReport, "rptQLDExport", acFormatRTF, frm.txtDirectory.Value + "\QLD\All\QDATA.DOC"
is causing a runtime error 2587: Microsoft Access can't complete the Output operation
导致运行时错误 2587:Microsoft Access 无法完成输出操作
I have seached on the net for an answer but to no avail.
我在网上搜索了答案,但无济于事。
My development environment is Windows 7 SP1 (64-bit) and the application is running in Access 2010 (vba7, 64-bit). I'm willing answer questions to provide more information. Any suggestion will be appreciated.
我的开发环境是 Windows 7 SP1(64 位),应用程序在 Access 2010(vba7,64 位)中运行。我愿意回答问题以提供更多信息。任何建议将不胜感激。
采纳答案by Mitch Wheat
This forum postsuggests it is related to runtime versus full versions of Access (or Office). The suggested solution is to Copy the file UTILITY.ACCDA
from the ACCWIZ
directory to the same directory as MSACCESS.EXE
该论坛帖子表明它与运行时与完整版本的 Access(或 Office)有关。建议的解决方案是将文件UTILITY.ACCDA
从ACCWIZ
目录复制到与 MSACCESS.EXE 相同的目录
You would need to check licensing before distributing the file in your application installer, obviously.
显然,您需要在应用程序安装程序中分发文件之前检查许可。
Update: On a machine that fails, copy over ProcessMonitor (from technet; no install required). Filter to your application. Repeat the process and get it to fail. Examine the files that your application is trying to access and why they fail.
更新:在出现故障的机器上,复制 ProcessMonitor(来自 technet;无需安装)。过滤到您的应用程序。重复这个过程,让它失败。检查您的应用程序尝试访问的文件以及它们失败的原因。