进入2007年的错误 - 间歇性的查询参数提示 [英] access 2007 bug - intermittent query parameter prompts

查看:131
本文介绍了进入2007年的错误 - 间歇性的查询参数提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作是由其他人创建的Access 2007应用程序。它在它提示输入查询参数的用户的主要形式打开时一个奇怪的,间歇性的错误。查询参数显然是没有必要的,因为错误不会总是发生。

I am working on an Access 2007 application that was created by someone else. It has a strange, intermittent bug in which it prompts the user for query parameters when the main form is opened. The query parameters are clearly not necessary, because the error does not always occur.

本非常奇怪的修复这个问题是打开并打开主窗体之前关闭一个特定的模块。然后窗体打开不带参数的提示。不过,我当然不能要求最终用户打开和关闭模块。

The very strange "fix" to this problem is to open and close a particular module before opening the main form. Then the form opens without parameter prompts. However, of course I can't ask end users to open and close modules.

我试图用一个宏打开数据库时打开和关闭该模块。这修复了这个bug,但保留了VBA code窗口中打开,所以这是没有好。

I tried using a macro to open and close the module when the database is opened. That fixes the bug, but leaves the VBA code window open, so that's no good.

有没有人遇到这样的事情之前?任何建议的解决方案,解决方法,调试技巧,等等?

Has anyone run into anything like this before? Any suggested solutions, workarounds, debugging tips, etc?

推荐答案

如果您使用的数据库文档管理器功能,并在是将所有的选项,你会得到应该让你捕获您的问题参数一份详尽的报告。本报告导出为.rtf或.pdf格式的文件,所以它是可搜索的。确定从对话框提示关键字和搜索上。

If you use the "Database Documenter" feature and check "yes" to all the options, you will obtain an exhaustive report that should let you trap your problem parameter. Export this report as an .rtf or .pdf document, so it is searchable. Identify a keyword from the dialog prompt, and search on that.

在您检查使用文档管理器的查询对象,请检查您的VBA code。您将通过code在IDE步进做到这一点。如果主要形式有子窗体,它们被打开(内)的主要形式。他们的主要形式之前加载。

Once you check the query objects using the Documenter, check your VBA code. You'll do this by stepping through code in the IDE. If the main form has subforms, they are opened with (within) the main form. And they load before the main form.

  1. 在确定这些子窗体。
  2. 撒上 在他们的code模块断点 (如果你发现一个装载功能,即 是高度相关)。
  3. 如果主要形式有 code模块,做同样的在那里。
  1. Identify those subforms.
  2. Sprinkle breakpoints in their code modules (if you find a Load function, that is highly relevant).
  3. If the main form has a code module, do the same there.

这篇关于进入2007年的错误 - 间歇性的查询参数提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆